title: Exclude Multiple ID's from MySQL query
body: <p>Hoping this is just a case of syntax. </p>
  
  <p>I'm writing a custom search function for Wordpress and it's all working great except I'd like to exclude a couple of results dependant on their ID's.</p>
  
  <p>This works ok with one ID</p>
  
  <pre><code>$sqlp_page ="select ID, post_title, post_name, post_excerpt from wp_posts where post_type='page' and ID != '236' ";
  $sqlp_page .="and post_status='publish' ";
  $sqlp_page .="and (post_title like '%".$_GET['s']."%' ";
  $sqlp_page .="or post_content like '%".$_GET['s']."%') ";
  $sqlp_page .="and post_status='publish' ";
  $sqlp_page .="order by id ASC ";
  </code></pre>
  
  <p>But I can't seem to pass in more than one value for the ID.
  I have searched the net and tried several different ways but nothing seems to work for me.</p>
  
  <pre><code>$sqlp_page ="select ID, post_title, post_name, post_excerpt from wp_posts where post_type='page' and ID != '236,239' ";
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>$sqlp_page ="select ID, post_title, post_name, post_excerpt from wp_posts where post_type='page' and ID != '236' or '239' ";
  </code></pre>
  
  <p>And</p>
  
  <pre><code>$sqlp_page .="and ID != '236' ";
  $sqlp_page .="and ID != '239' ";
  </code></pre>
  
  <p>But nothing seems to work. 
  Any assistance is greatly appreciated.</p>