title: Passing an array to a query using a WHERE clause
body: <p>Given an array of ids <code>$galleries = array(1,2,5)</code> I want to have a SQL query that uses the values of the array in its WHERE clause like:</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT *
  FROM galleries
  WHERE id = /* values of array $galleries... eg. (1 || 2 || 5) */
  </code></pre>
  
  <p>How can I generate this query string to use with MySQL?</p>