title: How to get both sender and receiver name from a different table
body: <p>I'm trying to make a simple Message class for PHP. My <code>messages</code> table structure is as follows:</p>
  
  <p><code>id, sender_id, receiver_id, msg, date</code></p>
  
  <p>I want to get sender and receiver username from <code>users</code> table. How can I do it in a single query?</p>
  
  <p>Example output I expect:</p>
  
  <p><code>sender, sender_id, receiver, receiver_id, msg, date</code></p>