title: CodeIgniter Query Binding Using IN Clause with String array or string list
body: <p>Below is an example which fails.  I have tried several ways of getting $arrayOfIds below into the correct syntax for the id IN (?) with no luck.  If I do not query bind, it works.  </p>
  
  <p><strong>Note:</strong> We are <strong>not</strong> using Active Record.</p>
  
  <pre><code>// this is actually being passed in as argument
  $arrayOfIds = array('A0000-000000000001','B0000-000000000001','C0000-000000000001');  
  
  $params = array();
  array_push($params,1); // for the status
  array_push($params, "'" . implode("','",$arrayOfIds) . "'"); // for the id in 
  
  $sql = "SELECT name FROM my_table WHERE status = ? AND id IN (?) ";
  
  $query = $this-&gt;db-&gt;query($sql,$params); 
  </code></pre>