CodeIgniter Active Record Where Not In String

Mam problem z aktywnym rekordem CI ”Gdzie nie jest„. Próbuję wykluczyć serię identyfikatorów. Nie mogłem zrozumieć, dlaczego wszystko działało dobrze i eleganckojeden rekord, ale nie z wielokrotnością.

Moje zapytanie

$this->db->where_not_in('crm.user_id', $ignore);

Problem polega na tym, kiedy japrofil Zapytanie jest błędne.

Z ciągiem identyfikatorów

// $ignore = "12,13";    
SELECT *
FROM (`crm`)
WHERE `crm`.`user_id` NOT IN ('16,13') 
AND `survey` =  1 

Z ciągiem cytatów ID

// $ignore = "'12','13'";
SELECT *
FROM (`crm`)
WHERE `crm`.`user_id` NOT IN ('\'16\',\'13\'') 
AND `survey` =  1 

Czy jestem zmuszony zrobić pętlęlub_ gdzie_ nie_w" czy jakoś tak?

questionAnswers(1)

yourAnswerToTheQuestion