title: How can i get last row of specific id in mysql?
body: <p>I'm trying to get last row of specific id in mysql. Let suppose i have a table user products </p>
  
  <pre><code>    userProducts
  
      id | user_id  | products 
      1 | 12| Mouse
      2 | 12| Keyboard
      3 | 12| Laptop
      4 | 12| Headphone
      5 | 12| Webcame
  </code></pre>
  
  <p>I want to get last row Webcame of <code>user_id=12</code>. Please guide me how can i customize this query for that.</p>
  
  <pre><code>select * from userProducts where user_id = 12
  </code></pre>