SELECT * FROM JT_City WHERE (REPLACE(sCityName,'/ ','')='Albert Street' AND iProvinceID =Little India ) OR (REPLACE(sCityName,'/',' ')='Albert Street' AND iProvinceID =Little India);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 'India ) OR (REPLACE(sCityName,'/',' ')='Albert Street' AND iProvinceID =Little ' at line 1