title: Mysql query parameter binding issue
body: <p>I am trying to run a mysql query to SELECT rows based on the ID's provided, here is the query:</p>
  
  <pre><code>$result = $wpdb-&gt;get_results($wpdb-&gt;prepare("SELECT guid FROM bicp_posts WHERE ID IN (%s)", $gallery[0]));
  </code></pre>
  
  <p>The $gallery[0] variable contains a string as: "1440,1439,1417"</p>
  
  <p><strong>Problem:</strong>
  When I execute this query it gives me only one row in result instead of 3 rows, For debugging purpose I displayed the last executed query and it shows this executed query:</p>
  
  <p><strong>SELECT guid FROM bicp_posts WHERE ID IN ('1440,1439,1417');</strong></p>
  
  <p>Notice the commas inside IN brackets are the problem as the following query gives correct results: (without commas in brackets)</p>
  
  <p><strong>SELECT guid FROM bicp_posts WHERE ID IN (1440,1439,1417);</strong></p>
  
  <p>How can I bind the string in the query such that it is without the commas like the query written right above this sentence so that I can get correct results.</p>