QUERY: SELECT P.* FROM SP_BusinessProfile P JOIN SP_Businesscategory B ON B.user_id = P.user_id WHERE (LOWER(P.post_code) LIKE 'RH5%' OR LOWER(P.post_code) LIKE 'TR%' OR LOWER(P.post_code) LIKE 'E14%') AND
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 '' at line 1