title: Getting insert id with insert PDO MySQL
body: <p>Im getting to grips with the basics of PDO.</p>
  
  <p>However Im trying to get the id of the inserted row, Im using:</p>
  
  <pre><code>$query = $system-&gt;db-&gt;prepare("INSERT INTO {$this-&gt;_table} (name,description) VALUES (:name,:description)");
  $query-&gt;execute(array('name'=&gt;$name,'description'=&gt;$description));
  </code></pre>
  
  <p>The tutorials I have come across are regarding transactions, however I am not using transactions!</p>