[eluser]Jelmer[/eluser]
Maybe again something I should have read in the manual, but I couldn't find out how to get a MAX(`column`)/MIN(`column`) done so I added 2 carbon-copies of the count() method in the DB_Query_Select class:
Code:
public function min($column)
{
if($this->escape)
{
// escape the string
$column = $this->_instance->protectIdentifiers($column);
}
// save it, so we still can use this query object here
$tmp = $this->columns;
// construct the MIN
$this->columns = array('MIN(' . $column . ')');