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 '67413066' AND deleted!='1' AND rating>'20' LIMIT 12' at line 1SELECT * FROM people WHERE last_name='\-\-\' AND id!='67413066' AND deleted!='1' AND rating>'20' LIMIT 12