What is the max robot id?
$id = Robots::max(array('column' => 'id'));
echo "The max robot id is: ", $id, "\n";
What is the max id of mechanical robots?
$sum = Robots::max(array("type='mechanical'", 'column' => 'id'));
echo "The max robot id of mechanical robots is ", $id, "\n";