Mam taki błąd jak wchodzę w temat nie w każdy ale czasami w niektórych, jak to naprawić?



Database error in vBulletin 3.8.5:

Invalid SQL:

SELECT *
FROM threadrate
WHERE userid = 5361
AND threadid =;

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 4
Error Number : 1064
Request Date : Monday, June 21st 2010 @ 02:40:33 PM
Error Date : Monday, June 21st 2010 @ 02:40:33 PM
Script : http://n.pl/showthread.php?t=25695
Referrer : Google
IP Address : 213.678.91.91
Username : Shyte
Classname : vB_Database
MySQL Version : 5.0.67