Can't execute query select distinct c.cil_countryname, c.cil_countryISO FROM skiresorts s JOIN countryinfo_lang c ON c.cil_countryISO =s.CountryCode AND c.cil_language ='ru' WHERE Dec=1 and cil_countryISO='DE' DB Error: syntax error