title: How to get last id in cakephp
body: <p>I am using query in cakephp </p>
  
  <pre><code>$this-&gt;Menu-&gt;query("INSERT INTO frd_menus SET menuName= '".$_REQUEST['menuname']."'");
  </code></pre>
  
  <p>How to get last insert id of this query in cakephp? Please advice.</p>