where('`Cart`.`userId` = ?', $this->_filter['userId'], Qs_Db::INT_TYPE); return $this; } public function checkUserOrderAccess($userId, $orderId) { $select = $this->_getFromDbSelect($orderId); $select->reset(Zend_Db_Select::COLUMNS)->columns(new Zend_Db_Expr('"1"')); $select->where('`Cart`.`userId` = ?', $userId); return ($this->_db->fetchOne($select) != false); } }