[eluser]tecrik[/eluser]
No kidding, I am having a blast

Thanks so much for the help here, though!
So I ran into a different problem with this part:
Code:
function order_value_average ()
{
$this->db->select_avg('summe');
$query = $this->db->get('orders');
return $query->summe;
}
According to the user guide, this part
Code:
$this->db->select_avg('summe');
$query = $this->db->get('orders');
should produce something like "SELECT AVG(summe) as summe FROM members" which makes the entire snippit very similar to the one in my inital post. Still, I get the following error message "Undefined property: CI_DB_mysql_result::$summe" in my view.
In general, I am confused about the "return" part, meaning how to return data and in which way. Is there some kind of documentation for that?