SELECT COUNT(id) as nr FROM psorter_listings WHERE (sale_rent = 'rent') AND (price<=) AND ((address LIKE "%BANSTEAD%") OR (zip LIKE "%BANSTEAD%"))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 ') AND ((address LIKE "%BANSTEAD%") OR (zip LIKE "%BANSTEAD%"))' at line 1