protected function _fetchField($result, $key = 0)
    {
        $return = null;
        if ($row = $result->fetch_row()) {
            $return = $row[(int)$key];
        }

        $result->free();

        return $return;
    }
protected function _fetchField($result, $key = 0)
    {
        $return = null;
        if ($row = $result->fetch_row()) {
            $return = $row[(int)$key];
        }

        $result->free();

        return $return;
    }
protected function _fetchField ( $ result , $ key = 0 ) { $ return = null ; if ( $ row = $ result -> fetch_row ( ) ) { $ return = $ row [ ( int ) $ key ] ; } $ result -> free ( ) ; return $ return ; }
Fetch the first field of the first row

@param	mysqli_result  	The result object. A result set identifier returned by the select() function
@param   integer         The index to use
@return The value returned in the query or null if the query failed.
Fetch the first field of the first row