A Database Error Occurred

Error Number: 1064

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 '-25, 25' at line 16

SELECT `hotels_translation`.`name`, `hotels`.`seo`, `hotels`.`hotel_id`, `hotels`.`city`, `hotels`.`town`, `hotels`.`district`, `hotels`.`coordinates`, `hotels`.`logo`, `hotels`.`showcase_photo`, `hotels`.`virtual_number`, `hotels_hotel_promotion_prices`.`normal_price`, `hotels_hotel_promotion_prices`.`discount_percent`, `hotels_hotel_promotion_prices`.`discounted_price`, `hotels_hotel_promotion_prices`.`concept_name`, `hotels_hotel_promotion_prices`.`child_discount`, `hotels_hotel_promotion_prices`.`currency`, `hotels`.`average_score`, `hotels`.`star`, `hotels`.`date_opening`, `hotels`.`date_closing` FROM `hotels` JOIN `website_portal_hotels` ON `website_portal_hotels`.`hotelId`=`hotels`.`hotel_id` JOIN `hotels_translation` ON `hotels_translation`.`hotel_id`=`hotels`.`hotel_id` and `hotels_translation`.`lang`='tr' JOIN `hotels_hotel_promotion_prices` ON `hotels_hotel_promotion_prices`.`hotel_id`=`hotels`.`hotel_id` and `hotels_hotel_promotion_prices`.`market_id`='1' WHERE ( `city` = '593' OR `town` = '593' OR `district` = '593' ) AND `hotels`.`status` = 1 AND `showOnWeb` = 1 AND `website_portal_hotels`.`siteId` = 1 AND `hotels`.`status` = 1 GROUP BY `hotels`.`hotel_id` ORDER BY `hotels_hotel_promotion_prices`.`has_price` DESC, `hotels`.`sort` ASC, `hotels`.`hotel_id` DESC LIMIT -25, 25

Filename: models/Hotel.php

Line Number: 183