public function aggregate($function, $column)
{
$select = $this->getPart('select');
$results = $this->setPart('select', sprintf('%s(%s) aggregate', strtoupper($function), $column))->get();
$this->setPart('select', $select);
if ($results) {
return $results[0]['aggregate'];
}
}