public function query($fetchMode = null, $bind = array())
    {
        if (!empty($bind)) {
            $this->bind($bind);
        }

        $stmt = $this->_adapter->query($this);
        if ($fetchMode == null) {
            $fetchMode = $this->_adapter->getFetchMode();
        }
        $stmt->setFetchMode($fetchMode);
        return $stmt;
    }
public function query($fetchMode = null, $bind = array())
    {
        if (!empty($bind)) {
            $this->bind($bind);
        }

        $stmt = $this->_adapter->query($this);
        if ($fetchMode == null) {
            $fetchMode = $this->_adapter->getFetchMode();
        }
        $stmt->setFetchMode($fetchMode);
        return $stmt;
    }
public function query ( $ fetchMode = null , $ bind = array ( ) ) { if ( ! empty ( $ bind ) ) { $ this -> bind ( $ bind ) ; } $ stmt = $ this -> _adapter -> query ( $ this ) ; if ( $ fetchMode == null ) { $ fetchMode = $ this -> _adapter -> getFetchMode ( ) ; } $ stmt -> setFetchMode ( $ fetchMode ) ; return $ stmt ; }
Executes the current select object and returns the result

@param integer $fetchMode OPTIONAL
@param  mixed  $bind An array of data to bind to the placeholders.
@return PDO_Statement|Zend_Db_Statement
Executes the current select object and returns the result