error getting bookings hotels

SELECT hotel_id, name AS ad_title, latitude, longitude, ( 6371 * acos( cos( radians(51.25669000) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(8.11636000) ) + sin( radians(51.25669000) ) * sin( radians( latitude ) ) ) ) AS distance FROM `booking_hotels` WHERE ( latitude BETWEEN 51.076825932901 AND 51.436554067099 ) AND ( longitude BETWEEN 7.8289602661546 AND 8.4037597338454 ) AND hoteltype_id IN(217,231,204,216,203,202,221,218,205,208,227,209,225,229,220,228,232,219,206,222,201,210,224,213,207,226,223) ORDER BY FIELD(hoteltype_id,217,231,204,216,203,202,221,218,205,208,227,209,225,229,220,228,232,219,206,222,201,210,224,213,207,226,223), distance ASC, CASE WHEN minrate <1 THEN 1 ELSE 0 END, gabino_date_update DESC, review_score DESC LIMIT 0,20