title: How to select last_insert_id?
body: <p>I have an SQL statement that returns more than one value:
  <a href="https://i.stack.imgur.com/6ZMaO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ZMaO.png" alt="enter image description here" /></a></p>
  <p>In my code I then need to call the last ID that was inserted. I have seen some examples about <code>SELECT LAST_INSERT_ID()</code> but they all seems to be for insert statements. I just want to show the last inserted id.</p>
  <p>So from the image below I would only need to select ID 13.</p>