I am now getting database errors on the CMS. Here is the error:
I am getting it every hour? I checked the function.php and it shows:
Does anyone have a clue what is going on?
Thanks if you can help..
Code:
Database error in vBulletin 4.0.4: Invalid SQL: SELECT MAX(permissions & 1) AS perm FROM cms_permissions WHERE nodeid = 1 AND usergroupid in (); 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 2 Error Number : 1064 Request Date : Monday, June 28th 2010 @ 05:00:04 AM Error Date : Monday, June 28th 2010 @ 05:00:19 AM Script : http:/// Referrer : IP Address : Username : Classname : vB_Database MySQL Version :
Code:
$sql = "SELECT MAX(permissions & 1) AS perm FROM " . TABLE_PREFIX . "cms_permissions WHERE nodeid = 1 AND usergroupid in (" . $vbulletin->userinfo['usergroupid'] . ($vbulletin->userinfo['membergroupids'] != '' ? ', ' . $vbulletin->userinfo['membergroupids'] : '' ) . ")";
Thanks if you can help..
Comment