db query() error : SELECT employers.*, accounts.full_name, accounts.avatar,employers_contacts.full_name as contact, cities.title_en AS city, countries.title_en AS country_title, industries.title_en AS industry FROM employers INNER JOIN accounts ON accounts.id = employers.id LEFT JOIN cities ON cities.id = employers.city_id LEFT JOIN employers_contacts ON employers.id = employers_contacts.employer_id AND employers_contacts.id = (SELECT id FROM employers_contacts WHERE employers.id = employers_contacts.employer_id ORDER BY id ASC LIMIT 0,1 ) LEFT JOIN countries ON countries.code = employers.country LEFT JOIN industries ON industries.id = employers.industry_id WHERE employers.id =
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 5