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 'system WHERE (SystemUser = 46 AND (SystemCode = 10 OR SystemCode = 28) AND Syste' at line 1