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

/home/nmls.ru/data/www/nmls.ru/includes/Zend/Db/Statement.php : 115 : select * from vocGeo where garages_rent_count > 0 and type = 2 and city_id =
/home/nmls.ru/data/www/nmls.ru/includes/Zend/Db/Adapter/Mysqli.php : 381 :
Catchable fatal error: Object of class Zend_Db_Adapter_Mysqli could not be converted to string in /home/nmls.ru/data/www/nmls.ru/template/exception.php on line 4