Non-admin users can't add new sub-pages

Permalink
Hello Everyone,

I have three user groups:
->Administrators
->Superusers
->Users

I have set up advanced permissions such that the users can edit content, while superusers can approve changes and add new sub-pages. However, even though my super user can add sub-pages from the top edit bar, and select a page-type from the menu, when he clicks "Add Page" button, he gets the following error:

mysql error: [1064: 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 peID in (2,3,6) order by accessType desc' at line 1] in EXECUTE("select paID, peID, pdID, accessType from PermissionAccessList where paID = and peID in (2,3,6) order by accessType desc")


Please help as I need to get this running soon!!

It is my first time here so I hope someone can help me. Thanks in advance!