title: Getting latest inserted auto-incremented record id using fat-free-framework
body: <p>I need to get the id(AUTO-INCREMENTED) of latest inserted record in a table.
  I am using fat-free-framework. </p>
  
  <p>I tried to get the latest id by using</p>
  
  <pre><code>$id = mysql_insert_id();
  </code></pre>
  
  <p>but it gave me this error</p>
  
  <blockquote>
    <p>Access denied for user 'root'@'localhost' (using password: NO)</p>
  </blockquote>
  
  <p>I am accessing database using fat-free-framework and not using traditional php functions. Can any one guide me how to accomplish this ?</p>