
Originally Posted by
cditty
Database error in vBulletin 3.0.8:
Invalid SQL:
SELECT thread.threadid, thread.forumid
FROM thread AS thread, subscribethread AS subscribethread
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
WHERE subscribethread.threadid = thread.threadid
AND subscribethread.userid = 1221
AND thread.visible = 1
AND lastpost > 1148163935
AND deletionlog.primaryid IS NULL
mysql error: Unknown column 'thread.threadid' in 'on clause'
mysql error number: 1054
I had the same error after upgrading to MySQL 5.0.19-standard
The error I was geting is:
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT thread.threadid, thread.forumid
FROM thread AS thread, subscribethread AS subscribethread
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
WHERE subscribethread.threadid = thread.threadid
AND subscribethread.userid = 1083
AND thread.visible = 1
AND lastpost > 1147857568
AND deletionlog.primaryid IS NULL
mysql error: Unknown column 'thread.threadid' in 'on clause'
mysql error number: 1054
Date: Wednesday 17th of May 2006 08:42:08 AM
Script: http://saudielection.com/ar/forum/usercp.php?
Referer: http://saudielection.com/ar/forum/login.php
Username: ………
IP Address: ………..
This error did not allow any one to go to there CP on the forum.
This is how I fixed it:
edit usercp.php
find:
PHP Code:
FROM " . TABLE_PREFIX . "thread AS thread, " . TABLE_PREFIX . "subscribethread AS subscribethread
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
WHERE subscribethread.threadid = thread.threadid
AND subscribethread.userid = $bbuserinfo[userid]
replace with
PHP Code:
FROM " . TABLE_PREFIX . "subscribethread AS subscribethread
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON(subscribethread.threadid = thread.threadid)
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
WHERE subscribethread.userid = $bbuserinfo[userid]
PS:
I found this fix on a forum (not vbulletin) which deals with vb errors among other things.
good luck
Bookmarks