src/mako/database/query/Query.php
public function column($column = null)
	{
		if($column !== null)
		{
			$this->select([$column]);
		}

		$query = $this->limit(1)->compiler->select();

		return $this->connection->column($query['sql'], $query['params']);
	}
public function column($column = null)
	{
		if($column !== null)
		{
			$this->select([$column]);
		}

		$query = $this->limit(1)->compiler->select();

		return $this->connection->column($query['sql'], $query['params']);
	}
public function column ( $ column = null ) { if ( $ column !== null ) { $ this -> select ( [ $ column ] ) ; } $ query = $ this -> limit ( 1 ) -> compiler -> select ( ) ; return $ this -> connection -> column ( $ query [ 'sql' ] , $ query [ 'params' ] ) ; }
Executes a SELECT query and returns the value of the chosen column of the first row of the result set.

@param  string $column The column to select
@return mixed
Executes a SELECT query and returns the value of the chosen column of the first row of the result set .