title: Complicated MySql query using state IN ()
body: <p>Here is a situation; in a table column/s named <code>foo</code> I have dynamically <code>implode()</code>d varchar data like <code>1,2,3,4</code> or <code>2,3</code> or <code>1,3</code> and so on. </p>
  
  <p>Later, in code there is recognized string <code>$ce = 3;</code> before query of course, ready to draw resources from <code>foo</code> columns containing number 3.</p>
  
  <p>Now I'm using following select..</p>
  
  <pre><code>SELECT DISTINCT place FROM xx WHERE she = 1
                        AND foo IN ($ce)
  </code></pre>
  
  <p>That doesnt do it.</p>
  
  <pre><code>SELECT DISTINCT place FROM xx WHERE she = 1
                        AND $ce IN (foo)
  </code></pre>
  
  <p>doesnt do it also.</p>
  
  <p>Where Im wrong? Any ideas?</p>