title: how do i get the 3 last rows from a table using codeigniter?
body: <p>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: </p>
  
  <pre><code>public function load3Comments(){
              $this-&gt;db-&gt;order_by("c_id", "desc");
              $query = $this-&gt;db-&gt;get('comment');
              return $this-&gt;get_results($query);
          }
  </code></pre>