public function readOne($sql)
    {
        $result = $this->readAll($sql, false);
        if (count($result) > 0) {
            return $result[0];
        }
    }
public function readOne($sql)
    {
        $result = $this->readAll($sql, false);
        if (count($result) > 0) {
            return $result[0];
        }
    }
public function readOne ( $ sql ) { $ result = $ this -> readAll ( $ sql , false ) ; if ( count ( $ result ) > 0 ) { return $ result [ 0 ] ; } }
Returns the first row of the result set as an associative array, regardless
of the overall number of rows

<code>
$result = $this->readOne('SELECT col1, col2 FROM table');

...

array(
'col1' => 'value of col1',
'col2' => 'value of col2'
)

</code>

@param string $sql SELECT statement

@return array Single dimension array of the first row returned by the
SELECT query, regardless of overall result set count
Returns the first row of the result set as an associative array regardless of the overall number of rows