PDA

View Full Version : I'm getting an Error when guests post.


prettyboi
03-26-2006, 05:11 AM
Okay, here's the problem! I'm getting this error report when my guests post in one particular forum only that they are allowed to.

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT COUNT(*) AS count FROM vb_user WHERE referrerid =;

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 1
Error Number : 1064
Date : Sunday, March 26th 2006 @ 01:08:55 AM
Script : http://www.asianunityforum.com/showthread.php?p=3895#post3895
Referrer :
IP Address : 68.230.237.222
Username : PRETTYBOI
Classname : vb_database

Can someone help me fix this please or give me an MySQL commands to execute this query to correct the problem. Thanks!!!

shovel
03-30-2006, 03:25 PM
Track down the code inside showthread.php. You need to add a line of code stating that if the referrerid is empty then don't run that sql selection.