Doesnt?t work for me:
Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT COUNT(*) AS count FROM vbgtablename WHERE userid = 3;
MySQL Error : Table 'forumsql.vbgtablename' doesn't exist
Error Number : 1146
Date : Friday, April 28th 2006 @ 12:30:19 AM
Script :
http://www.forum.com/showthread.php?p=125405
Referrer :
http://www.forum.com/index.php
IP Address : xx.xx.xx.xx.xx
Username : wii
Classname : vb_database