title: select result except strings in_array with sql
body: <p>I have code like this:</p>
  
  <pre><code>$p = $db-&gt;query("SELECT ads_id FROM ads_submissions WHERE status = '0'");
  $c_ads = array();
  while($row = $db-&gt;fetchAll($p))
  {
      $c_ads[] = $row;
  }
  </code></pre>
  
  <p>Output </p>
  
  <pre><code>4 6 9
  </code></pre>
  
  <p>I want to add this line to $new_ads = $db-> after WHERE</p>
  
  <pre><code>AND ads_id = !in_array('$output', $c_ads)
  </code></pre>
  
  <p>To select all ads_id except id 4 and 6 and 9</p>
  
  <pre><code>$new_ads = $db-&gt;fetchOne("SELECT ads_id FROM ads_pack WHERE allowed_countries LIKE '%".$country_tr."%'");
  </code></pre>
  
  <p>But this never work correctly.</p>
  
  <p>Any help please ?</p>
  
  <p>Thank you.</p>