CodeIgniter - implode/query binding causing unwanted string
问题 I have the following query attempting an update in CodeIgniter: $sql = "UPDATE fanout.manual_data SET call_leader_id = ? WHERE id IN (?)"; $q = $this->db->query($sql, array($leaderID, implode(", ", $empIDs))); The implode is creating a string of all the IDs in my array. However, that is resulting in the query looking like: UPDATE fanout.manual_data SET call_leader_id = '55993' WHERE id IN ('57232, 0097726, 0076034'); When what I need is: UPDATE fanout.manual_data SET call_leader_id = '55993'