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 14
SQL query :SELECT
hotels.Id_hotel,
hotels.name AS hotel_name,
cities.name_rus AS city_name,
lands.name_rus AS land_name,
countries.name_rus AS country_name
FROM (hotels, cities, countries)
LEFT JOIN lands
ON lands.Id_land = hotels.land_rel
WHERE
hotels.Id_hotel!='658' AND
cities.Id_city = hotels.city_rel AND
countries.Id_country = hotels.country_rel AND
hotels.city_rel=