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