Log in

View Full Version : Can someone help figure where this bug is coming from?


futuredood
08-01-2006, 06:27 AM
I keep receiving this e-mail sporadically through e-mail. I'm not sure which hack is causing it since I have a number of them installed.

Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE user AS user
SET user.threads =
(
SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN forum AS forum ON forum.forumid = thread.forumid
WHERE visible = 1
AND (forum.options & 4096)
AND user.userid=postuserid
);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN f
Error Number : 1064
Date : Tuesday, August 1st 2006 @ 03:25:03 AM
Script : http://www.xxx/cron.php?&rand=970757
Referrer : http://www.xxx.com/
IP Address : xxx
Username : Unregistered
Classname : vb_database

Kirk Y
08-01-2006, 07:22 AM
Do any of your hacks use Scheduled Tasks, like an RSS Feed puller or something like that? You could try disabling all your hacks and then reenabling them one by one until you find which one is causing the problem.

Marco van Herwaarden
08-01-2006, 09:05 AM
What MySQL version are you using.

MySQL only introduced sub-queries in the more recent versions.