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