My query is like this :
$group_id = $session['group_id'];
$sql = "SELECT *
FROM notification
WHERE group_id IN(?)";
$result = $this->db->query($sql, array($group_id))->result_array();
When I add : echo $this->db->last_query();die();
, the result is like this :
SELECT * FROM notification WHERE group_id IN('1,13,2')
I want remove single quotes in order to the result is like this :
SELECT * FROM notification WHERE group_id IN(1,13,2)
How to remove single quotes in prepare statement?
See Question&Answers more detail:os