A Database Error Occurred

Error Number: 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 belongs2_id in (4804) AND status = 'approved' and member_access = 'admin'' at line 3

SELECT `uid` FROM (`memberships`) WHERE `belongs2` = 'team' and uid != and belongs2_id in (4804) AND status = 'approved' and member_access = 'admin'