SQL 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 's vineyard' and `code_sity` IS not NULL and `code_sity` != '' ) AND country_en ' at line 1 in: select `code`,`country_en`,`country_ru`,`sity_en`,`sity_ru`,`code_sity` from `world` WHERE ( `sity_en` like 'martha's vineyard' and `code_sity` IS not NULL and `code_sity` != '' ) AND country_en LIKE 'united states'