Make a SQL query with the WHERE clause accepting array <p>I have an array of six elements (<code>$categories = array('dinner','casual','wedding')</code>) and I would like to make a SQL query that would look like this:</p> <p><code>SELECT * FROM produts WHERE id = /* values of array $categories... eg. (dinner || casual || wedding) */ </code></p>