public function max($table, $join, $column = null, $where = null)
{
$query = $this->query($this->select_context($table, $join, $column, $where, 'MAX'));
if ($query) {
$max = $query->fetchColumn();
return is_numeric($max) ? $max + 0 : $max;
} else {
return false;
}
}