This time, it properly inserted the forumid, but still ive got the sql error.
Code:
Invalid SQL:
SELECT * FROM accessdenied_message
WHERE usergroupid = 1
AND forumid = 0
AND (script = 'index(*)' OR script = '*' OR script = 'index(*)';
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
hmm weird.