public function queryFirstPDO($sql, array $params = array())
    {
        $query_id = $this->_queryPDO($sql, $params);
        if ($query_id === false) {
            return false;
        }
        $out = $this->_fetchPDO();
        $this->_freeResultPDO();
        return $out;
    }
public function queryFirstPDO($sql, array $params = array())
    {
        $query_id = $this->_queryPDO($sql, $params);
        if ($query_id === false) {
            return false;
        }
        $out = $this->_fetchPDO();
        $this->_freeResultPDO();
        return $out;
    }
public function queryFirstPDO ( $ sql , array $ params = array ( ) ) { $ query_id = $ this -> _queryPDO ( $ sql , $ params ) ; if ( $ query_id === false ) { return false ; } $ out = $ this -> _fetchPDO ( ) ; $ this -> _freeResultPDO ( ) ; return $ out ; }
Run the query, fetches the first row only, frees resultset
@access public
@param String $sql
@param Array $params
@return Mixed The first record as an Array or FALSE in case the query fails to execute.
Run the query fetches the first row only frees resultset