protected function hasAggregates() {
		if ($this->groups) {
			return true;
		}
		foreach ($this->columns as $column) {
			if (strpos($column, '(') !== false) {
				return true;
			}
		}
		return false;
	}