diff --git a/system/db/query.php b/system/db/query.php index 115fdabb..975d004f 100644 --- a/system/db/query.php +++ b/system/db/query.php @@ -482,6 +482,7 @@ class Query { private function aggregate($aggregator, $column) { $this->select = 'SELECT '.$aggregator.'('.$this->wrap($column).') AS '.$this->wrap('aggregate'); + return $this->first()->aggregate; }