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