I'm occasionally getting the following error on my forums after my server updated MySQL from 5.1 to 5.5:
PHP Code:
Database error in vBulletin 4.2.0:
Invalid SQL:
SELECT post.postid, post.threadid, post.visible, post.title, post.userid, thread.forumid, thread.title AS thread_title, thread.postuserid, thread.visible AS thread_visible, thread.firstpostid FROM post AS post LEFT JOIN thread AS thread USING (threadid) WHERE postid IN (-1)union);
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 ')' at line 5 Error Number : 1064 Request Date : Friday, November 18th 2016 @ 05:16:52 AM Error Date : Friday, November 18th 2016 @ 05:16:53 AM Script : [url]http://removed.com/http://removed.com/forumrunner/request.php?d=1&cmd=get_spam_data&postids=-1)union[/url] Referrer : IP Address : 185.2.32.2 Username : Unregistered Classname : vB_Database MySQL Version :
I'd love some advice, please! Clearly something is no longer valid in the new version of SQL, but I'm not sure where in vBulletin to edit the syntax, nor what I should be editing it to (some kind of bracketing issue, I'm guessing).