I get this error when I try to browse the forum:
"Database error in vBulletin 3.6.4:
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, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadredirect.expires
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.threadid IN (0,817,815,816,785,793,792,794,790,780,789,784,782,728,765,781,779,754,766,771,762,1,767,3 3)
ORDER BY sticky DESC, lastpost DESC;
MySQL Error : Table 'post' is marked as crashed and should be repaired
Error Number : 1194
Date : Saturday, September 15th 2007 @ 10:59:29 AM
Script : http://www.sportriding.gr/forum/forumdisplay.php?f=2
Referrer : http://www.sportriding.gr/forum/index.php
IP Address : 87.203.161.229
Username : stako
Classname : vb_database"
The main page opens up ok but when I browse thw categories etc the error comes up...
Anyone any ideas?
Thanks
"Database error in vBulletin 3.6.4:
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, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadredirect.expires
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.threadid IN (0,817,815,816,785,793,792,794,790,780,789,784,782,728,765,781,779,754,766,771,762,1,767,3 3)
ORDER BY sticky DESC, lastpost DESC;
MySQL Error : Table 'post' is marked as crashed and should be repaired
Error Number : 1194
Date : Saturday, September 15th 2007 @ 10:59:29 AM
Script : http://www.sportriding.gr/forum/forumdisplay.php?f=2
Referrer : http://www.sportriding.gr/forum/index.php
IP Address : 87.203.161.229
Username : stako
Classname : vb_database"
The main page opens up ok but when I browse thw categories etc the error comes up...
Anyone any ideas?
Thanks
Comment