QUERY: SELECT P.* FROM SP_BusinessProfile P JOIN SP_Businesscategory B ON B.user_id = P.user_id WHERE (LOWER(P.post_code) LIKE 'SE3%' OR LOWER(P.post_code) LIKE 'SE13%' OR LOWER(P.post_code) LIKE 'SE12%') 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