>

ERROR: 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 'limit=5' at line 7 select d.destination_code, h.* from hotels h inner join destination_hotels dh using (hotel_id) inner join destinations d using (destination_id) where 1 and d.destination_id = 601715 order by h.stars DESC, hotel_name limit limit=5

#0  dump_trace() called at [/usr/sites/common/mysql_class.inc:369]
#1  db->error(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 'limit=5' at line 7
select d.destination_code, h.* from hotels h
			inner join destination_hotels dh using (hotel_id)
			inner join destinations d using (destination_id)
			where 1
and d.destination_id = 601715
order by h.stars DESC, hotel_name
limit limit=5) called at [/usr/sites/common/mysql_class.inc:986]
#2  query->error() called at [/usr/sites/common/mysql_class.inc:754]
#3  query->execute() called at [/usr/sites/common/mysql_class.inc:776]
#4  query->rows() called at [/usr/sites/common/services/exp.class.inc:341]
#5  exp_class->show_properties() called at [/usr/sites/common/services/exp.class.inc:271]
#6  exp_class->destination() called at [/usr/sites/common/hybrid_index.php:230]