SELECT * FROM vb3_forumpermission WHERE ( forumid IN() AND usergroupid IN (1)) AND (maxthread=0 AND perhour=0);