title: Select last insert id
body: <p>I am inserting a record and i want to use the id of the last record inserted.
  This is what i have tried:</p>
  <pre><code>$sql = 'INSERT INTO customer
                  (first_name, last_name, email, password, 
                  date_created, dob, gender,  customer_type)
          VALUES(:first_name, :last_name, :email, :password, 
                  :date_created, :dob, :gender, :customer_type)' 
          . ' SELECT LAST_INSERT_ID()' ;
  </code></pre>
  <p>I am getting the error:</p>
  <blockquote>
  <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT LAST_INSERT_ID()'.</p>
  </blockquote>
  <p>Can anyone show me where is my mistake?
  Thanks!</p>