SQL_ERROR: SELECT country_info.id, country_info.country_name FROM sys_object scountry LEFT JOIN country ON (scountry.id = country.id), sys_object scountry_info LEFT JOIN country_info ON (scountry_info.id = country_info.id) WHERE country.id = country_info.country_id AND scountry_info.name like 'en-%' AND scountry_info.is_deleted = 0 AND country.id = 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 '' at line 11 SQL_ERROR: SELECT country_info.*, scountry_info.name, country_info.id as country_info_id, country.id FROM sys_object scountry LEFT JOIN country ON (scountry.id = country.id), sys_object scountry_info LEFT JOIN country_info ON (scountry_info.id = country_info.id) WHERE country.id = country_info.country_id AND scountry_info.name like 'en-%' AND scountry_info.is_deleted = 0 AND country.id = 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 '' at line 13 SQL_ERROR: SELECT country_info.*, scountry_info.name, country_info.id as country_info_id, country.id FROM sys_object scountry LEFT JOIN country ON (scountry.id = country.id), sys_object scountry_info LEFT JOIN country_info ON (scountry_info.id = country_info.id) WHERE country.id = country_info.country_id AND scountry_info.name like 'en-%' AND scountry_info.is_deleted = 0 AND country.id = 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 '' at line 13