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 'SELECT * FROM redbpillar9.property WHERE SubdivisionName='Bow Valley Trail' AN' at line 1 SELECT COUNT(*) AS totalListings SELECT * FROM redbpillar9.property WHERE SubdivisionName='Bow Valley Trail' AND PropertyType<>'Commercial'