Problem with a query on forumdisplay.php:
Code:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach , ga.iconpath,ga.synopsis, ga.byline
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid,
deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM hypovb_thread AS thread
LEFT JOIN hypovb_deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN hypovb_geek_articles as ga ON(ga.threadid = thread.threadid)
LEFT JOIN hypovb_post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0,26)
ORDER BY sticky DESC, lastpost DESC
mysql error: Unknown column 'ga.synopsis' in 'field list'
mysql error number: 1054