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 'as names FROM cl_country WHERE id=1) UNION (SELECT cl_city.id as id, cl_city. ' at line 1 query: (SELECT id, as names FROM cl_country WHERE id=1) UNION (SELECT cl_city.id as id, cl_city. as names FROM cl_zona_w LEFT JOIN cl_city ON (cl_zona_w.idd=cl_city.id) WHERE cl_zona_w.id=11 order by cl_city.) ORDER BY namesYou 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 4 query: SELECT * FROM cl_city_ukr WHERE 1 ORDER BY 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 query: SELECT * FROM cl_oblast WHERE 1 ORDER BY