public function fetch($sql, array $params, array $options = array())
    {
        $sth = $this->run($sql, $params);
        $result = $sth->fetch(PDO::FETCH_ASSOC);

        $this->prepareResult($result, $options);
        return empty($result) ? array() : (array) $result;
    }
public function fetch($sql, array $params, array $options = array())
    {
        $sth = $this->run($sql, $params);
        $result = $sth->fetch(PDO::FETCH_ASSOC);

        $this->prepareResult($result, $options);
        return empty($result) ? array() : (array) $result;
    }
public function fetch ( $ sql , array $ params , array $ options = array ( ) ) { $ sth = $ this -> run ( $ sql , $ params ) ; $ result = $ sth -> fetch ( PDO :: FETCH_ASSOC ) ; $ this -> prepareResult ( $ result , $ options ) ; return empty ( $ result ) ? array ( ) : ( array ) $ result ; }
Returns a single array indexed by column name
@param string $sql
@param array $params
@param array $options
@return array
Returns a single array indexed by column name