title: SQL Selecting two tables in one query
body: <p>I have two tables which are related to each other in my mysql database, the users and the user_info. users table contains the username, password etc. while my user_info table contains basic information of users like lastname, firstname, etc. I was wondering how to display one row which will came from both tables without using two select statement. </p>
  
  <p>It is something like this: (I know this is not the correct format. sorry)</p>
  
  <pre><code>SELECT * FROM users AND user_info WHERE users.user_id == user_info.user_id 
  </code></pre>