Mysqli prepare 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 'order by houses_count desc limit 10' at line 1

/home/ : 115 : select * from vocGeo where houses_count > 0 and type = 2 and city_id = order by houses_count desc limit 10
/home/ : 381 :
Catchable fatal error: Object of class Zend_Db_Adapter_Mysqli could not be converted to string in /home/ on line 4