i have a function that loads comments from a database. in an other page, I want to get the 3 last rows from a table in my database(so it would show the last 3 comments). that is the function that i have in my model:
public function load3Comments(){
$this->db->order_by("c_id", "desc");
$query = $this->db->get('comment');
return $this->get_results($query);
}