title: insert_id not getting the current id
body: <p>I have been reading the other quotes regarding this and haven't found an answer. I'm trying to return the record id with <code>insert_id</code>:</p>
  
  <pre><code>$user = $db-&gt;query("
  INSERT INTO users(user_name,user_email,user_password,user_salt,
      user_vMake,user_vModel,user_dateJoined,user_code)
  VALUES ('".$userName."',
          '".$userEmail."',
          '".$hashedPassword."',
          '".$salt."',
          '".$userVMake."',
          '".$userVModel."',
          '".$userDateJoined."',
          '".$randomCode."')
      ");
  #Add the user 
  $newID = $user-&gt;insert_id;
  </code></pre>
  
  <p>If any one has any idea that would be great.</p>