SELECT * FROM redbpillar9.property WHERE City='Aimoto' AND PropertyType<>'Commercial' sql error: 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 '* FROM redbpillar9.property WHERE City='Aimoto' AND PropertyType<>'Commercial'' at line 1 SELECT COUNT(*) AS totalListings , * FROM redbpillar9.property WHERE City='Aimoto' AND PropertyType<>'Commercial'