protected function aggregate(string $function, $column)
	{
		$this->select([new Raw(sprintf($function, $this->compiler->columns(is_array($column) ? $column : [$column])))]);

		if($this->inSubqueryContext === false)
		{
			$query = $this->compiler->select();

			return $this->connection->column($query['sql'], $query['params']);
		}
	}