Hi guys,
I'm the administrator of my forums, and they appear to work fine until I log in as myself - then when I visit parts of my forum, I get the following message:
Database error in vBulletin 3.5.3:
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 = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0,11)
ORDER BY sticky DESC, thread.lastpost DESC;
MySQL Error : Unknown column 'canview' in 'on clause'
Error Number : 1054
Date : Thursday, April 6th 2006 @ 04:58:47 PM
Does anyone know what is causing this issue please and how I can cure it?
I'm not sure if any other forums users are experiencing the same problem. I've only just put my site back online today after moving it to a new host
I'm the administrator of my forums, and they appear to work fine until I log in as myself - then when I visit parts of my forum, I get the following message:
Database error in vBulletin 3.5.3:
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 = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN (0,11)
ORDER BY sticky DESC, thread.lastpost DESC;
MySQL Error : Unknown column 'canview' in 'on clause'
Error Number : 1054
Date : Thursday, April 6th 2006 @ 04:58:47 PM
Does anyone know what is causing this issue please and how I can cure it?
I'm not sure if any other forums users are experiencing the same problem. I've only just put my site back online today after moving it to a new host
Comment