title: Kohana 2 database insert - insert id is returned but it is protected?
body: <p>So this code:</p>
  
  <pre><code> $db = Database::instance();
   $result = $db-&gt;query("insert into parser_log (sent)
                         values (".sizeof($jobs).")");
  </code></pre>
  
  <p>returns an object with the insert id, but when I try to access it: </p>
  
  <pre><code> Fatal error: Cannot access protected property Mysql_Result::$insert_id
  </code></pre>
  
  <p>What is up with that? Must I run a separate query to get the id? seems like a waste since the id is right there.</p>