كود PHP:
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, 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
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 32489)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0,12298,12297,12296,12289,12272,12292,12290,12294,12260,12243,12245,12196,12259,12234,12206,11289,12171,12054,12176,12159,1831,7108,6367,6608)
ORDER BY sticky DESC, thread.lastpost DESC;
MySQL Error : Can't open file: 'post.MYI' (errno: 145)
Error Number : 1016
Date : Tuesday, August 8th 2006 @ 10:51:05 AM
****** : http://www.6eeefy.com/forumdisplay.php?f=45
Referrer : http://www.6eeefy.com/index.php?styleid=40
IP Address : 62.105.150.56
Username : admin
Classname : vB_Database