title: Select multiple rows from MySQL table
body: <p>I have a session that contains an array and that array is filled with id's. What is the best way to select all the rows from a MySQL table that correspond to these id's?</p>
  
  <p>So I need something like:</p>
  
  <pre><code>SELECT * FROM table WHERE id = $_SESSION['ids']
  </code></pre>
  
  <p>Obviously, this doesn't work, since $_SESSION['ids'] is an array.</p>