Мы помогаем путешественникам выбирать самые лучшие номера в отелях
[Exception] 
SafeMySQL: 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 ') AND h.disabled=0 ORDER BY (case when t.sort is null then 1 else 0 end), t.sort' at line 1. Full query: [select h.id, h.name_ru, h.name_en, t.sort, t.rating from hotels as h LEFT JOIN top_hotels_by_country t ON t.hotel_id=h.id WHERE h.location_id IN (SELECT id FROM location WHERE country_id=) AND h.disabled=0 ORDER BY (case when t.sort is null then 1 else 0 end), t.sort ASC, t.rating DESC limit 100] (0)
/var/www/hroom_guru/html/inc/safemysql.class.php:623
#0: SafeMySQL->error(string)
	/var/www/hroom_guru/html/inc/safemysql.class.php:483
#1: SafeMySQL->rawQuery(string)
	/var/www/hroom_guru/html/inc/safemysql.class.php:282
#2: SafeMySQL->getAll(string)
	/var/www/hroom_guru/html/country.php:731