select hotels.id as id, hotels.name as name, hotels.rank as rank, hotels.description as description, locations.name as location from hotels, search_results, locations where search_results.token = 'af466f46ef10f2d018a28b10d703c064' and search_results.hotel = hotels.id and hotels.location = locations.id order by search_results.min_rate asc limit -10, 10
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 '-10, 10' at line 1