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 'ORDER BY rflid' at line 1

SELECT rflr.*, rfl.locationName, rf.title, rf.images FROM rfl_relation rflr INNER JOIN resortfeatureslocation rfl ON rflr.rflid=rfl.locationId INNER JOIN resortfeatures rf ON rf.id=rflr.rfid WHERE rid= ORDER BY rflid

Filename: /home/htseadmin/www/www/models/front_end/rental_model.php

Line Number: 100