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 ') AND usergroupid IN (6)) AND
(maxpost=0 AND postperhour=0)
اخوي اللي فهمته من الجملة السابقة ...
انه الامر اللي زرعته غير شيء بالمشاركة القصوى...