public function readCol($sql)
    {
        $result = $this->read($sql);
        $row    = $result->fetchAll(PDO::FETCH_COLUMN, 0);
        //$this->convertDatesInRows($result, $row);
        unset($result);
        return $row;
    }
public function readCol($sql)
    {
        $result = $this->read($sql);
        $row    = $result->fetchAll(PDO::FETCH_COLUMN, 0);
        //$this->convertDatesInRows($result, $row);
        unset($result);
        return $row;
    }
public function readCol ( $ sql ) { $ result = $ this -> read ( $ sql ) ; $ row = $ result -> fetchAll ( PDO :: FETCH_COLUMN , 0 ) ; //$this->convertDatesInRows($result, $row); unset ( $ result ) ; return $ row ; }
Returns an array of values for the first column of the result set

<code>
$result = $this->readCol('SELECT col FROM table');

...

array(
0 => 'value1',
1 => 'value2',
2 => 'value3'
)
</code>

@param string $sql SELECT statement

@return array Single dimension array of values for the column
Returns an array of values for the first column of the result set