src/Operations/Fetchable.php
public function column($index = 0)
    {
        $stmt = $this->execute();

        if ($stmt) {
            return $stmt->fetchAll(PDO::FETCH_COLUMN, $index);
        } else {
            return false;
        }
    }
public function column($index = 0)
    {
        $stmt = $this->execute();

        if ($stmt) {
            return $stmt->fetchAll(PDO::FETCH_COLUMN, $index);
        } else {
            return false;
        }
    }
public function column ( $ index = 0 ) { $ stmt = $ this -> execute ( ) ; if ( $ stmt ) { return $ stmt -> fetchAll ( PDO :: FETCH_COLUMN , $ index ) ; } else { return false ; } }
Executes a query and returns a column from all rows.

@param int $index zero-indexed column to fetch

@return mixed|bool result
Executes a query and returns a column from all rows .