Log in

View Full Version : Secondary usergroup and SQL error


knucklenitz
11-05-2009, 09:13 PM
Hi,

I noticed that some of the secondary usergroups I had 'checked' in the past to be a member of (I'm the admin and do this regularly) were not checked when I thought I had already. I checked them and also noticed I was part of the 'unregistered' usergroup. I unchecked this and saved. Found when I refreshed to verify, it was like I didn't even save.

I decided to remove some of the checks and then apply one by one. The first two were ok and then all of a sudden I got a database error.

Database error in vBulletin 3.8.4:

Invalid SQL:
SELECT title, usergroupid FROM usergroup WHERE usergroupid IN (6,9,10,17,18,19,20,21,22,23,24,25,26,27,28,29,30, 31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47 ,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,6 5,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82, 83,84,85,86,87,88,90,91,92,94,95,96,97,98,99,100,1 01,) ORDER BY title;

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 ') ORDER BY title' at line 1
Error Number : 1064
Request Date : Thursday, November 5th 2009 @ 04:08:02 PM
Error Date : Thursday, November 5th 2009 @ 04:08:02 PM
Script : http://SITE HERE/CONTROL PANEL HERE/user.php?do=edit&u=7
Referrer : http://SITE HERE/CONTROL PANEL HERE/user.php?do=modify
IP Address : IP HERE
Username : USER HERE
Classname : vB_Database
MySQL Version : 5.0.81-community-log

Any ideas what could have happened here?

3.8.4PL1

Thanks!

--------------- Added 1257488411 at 1257488411 ---------------

I tried disabling the two products I have as well as adding the disable hooks line to config.php. Still get the error.

I noticed in another thread that gmerin indicated that there shouldn't be a 'trailing comma' in the id listing which I have after the 101. I can't seem to find where this SQL statement resides (which php file). Not sure what I'd be looking for if I did find it.

I had others log in (not admin)and I'm the only one to get the error apparently. Appears to be only when I go to my username in my admin panel and is likely related to the listing of secondary usergroups.

Any ideas?