protected function hasAggregates() {
		if ($this->groups) {
			return true;
		}
		foreach ($this->columns as $column) {
			if (strpos($column, '(') !== false) {
				return true;
			}
		}
		return false;
	}
protected function hasAggregates() {
		if ($this->groups) {
			return true;
		}
		foreach ($this->columns as $column) {
			if (strpos($column, '(') !== false) {
				return true;
			}
		}
		return false;
	}
protected function hasAggregates ( ) { if ( $ this -> groups ) { return true ; } foreach ( $ this -> columns as $ column ) { if ( strpos ( $ column , '(' ) !== false ) { return true ; } } return false ; }
Returns true if this Query uses aggregate functions in either a GROUP BY clause or in the
select columns
@return bool
Returns true if this Query uses aggregate functions in either a GROUP BY clause or in the select columns