Ahsin1
05-14-2006, 03:35 AM
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount
,post.pagetext, firstpostid
FROM vbulltinthread AS thread
WHERE thread.threadid IN (0,570,365,568,442,364,37,579,483,392,402,451,381, 431,353,432,400,341,389,327)
ORDER BY sticky DESC, thread.lastpost DESC;
MySQL Error : Unknown table 'post' in field list
Error Number : 1109
Date : Sunday, May 14th 2006 @ 04:17:29 AM
================================================== =
any idea wht i should do ?:confused:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount
,post.pagetext, firstpostid
FROM vbulltinthread AS thread
WHERE thread.threadid IN (0,570,365,568,442,364,37,579,483,392,402,451,381, 431,353,432,400,341,389,327)
ORDER BY sticky DESC, thread.lastpost DESC;
MySQL Error : Unknown table 'post' in field list
Error Number : 1109
Date : Sunday, May 14th 2006 @ 04:17:29 AM
================================================== =
any idea wht i should do ?:confused: