/** * Convert array to Zend_Db_Select * * @param Zend_Db_Select $select * @param array $where * @return void */ public static function buildSelectWhere(Zend_Db_Select &$select, $where) { if (!is_array($where) || count($where) == 0) { return; } Core_Dao::buildArrayWhere($where); foreach ($where as $k => $v) { $select->where($k, $v); } }