title: SQL: Get maximum value in query where column is an array
body: <p>I need to get the maximum id value from the following table using SQL where name is 3 is contained in the array of that column:</p>
  
  <pre><code>id name
  1   [2,3]
  2   [3,5,6]
  3   [7,8]
  </code></pre>
  
  <p>This is what I'm trying (with a lot of combinations):</p>
  
  <pre><code>SELECT `MAX(id)`
  FROM `table`
  WHERE `name`
  IN ( 3 ) 
  </code></pre>
  
  <p>I should get the result <code>2</code> since <code>3</code> is contained in id 1 and 2.</p>