title: Imploded PHP integer array for Mysql NOT IN clause
body: <p>I've been trying to use a PHP integer array for a MySQL query that uses the <code>NOT IN</code> clause, but despite no errors it seems to always return the results I want filtered out.</p>
  
  <p>Example:</p>
  
  <pre><code>$IDS = $_SESSION['Posts'];
  $Select = 'SELECT * 
               FROM status 
              WHERE (W_ID = '.$ID.') 
                AND (ID NOT IN ("'.implode(',', $IDS).'")) 
           ORDER BY ID DESC 
              LIMIT '.$Begin.', '.$Number.'';
  
  $Select = mysql_query($Select) OR DIE(mysql_error());
  </code></pre>
  
  <p>I'm pretty sure this is a logical syntax error.</p>
  
  <p>What I've tested for:</p>
  
  <p>I've made sure that $IDS is treated as an array. Also I have tested to see whether there are values stored within the array. I have also not quoted the integer array, but then I got a mysql syntax error for not having them.</p>