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 's Garden residential mobile home park' AND id_prop != '22304' GROUP BY id_prop' at line 72