public function fetchColumn($sql, $params = array(), $column = 0)
    {
        return $this->query($sql, $params)->fetchColumn($column);
    }
public function fetchColumn($sql, $params = array(), $column = 0)
    {
        return $this->query($sql, $params)->fetchColumn($column);
    }
public function fetchColumn ( $ sql , $ params = array ( ) , $ column = 0 ) { return $ this -> query ( $ sql , $ params ) -> fetchColumn ( $ column ) ; }
Executes a query and returns a column value of the first row

@param string $sql The SQL query
@param mixed $params The query parameters
@param int $column The index of column
@return string
Executes a query and returns a column value of the first row