Good morning! I 'm trying to do a query with the 'IN' clause using 'Implode'. The problem is that whenever I return one record. Just take the first value of the array and puts it in the IN...
$array = $fields -> exports;
$values = implode(",", $array);
$export = Users_logs::find()
-> where(['IN', 'Id', [$values]])
-> all();