title: OUTPUT Inserted.row in mysqli
body: <p>I have the following sql table:</p>
  
  <blockquote>
    <p>id|email|fbid</p>
  </blockquote>
  
  <p>When I perform the query</p>
  
  <pre><code> INSERT INTO users(email,fbid) VALUES('randomvalue','otherrandomvalue')
  </code></pre>
  
  <p>I want to get the id of the inserted row. To do so, I've tried to edit the query like this:</p>
  
  <pre><code> INSERT INTO users(email,fbid) VALUES('randomvalue','otherrandomvalue') OUTPUT Inserted.id
  </code></pre>
  
  <p>But I'm getting:</p>
  
  <blockquote>
    <p>1064 - 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 'OUTPUT Inserted.id' at line 1</p>
  </blockquote>
  
  <p>What could be the problem?</p>