@Mattiman You can't do it this way. When you provide comma separated string as single binding to PDO, you will get basically this:
select * from table where id in ('1,2,3,4,5')
// equivalent to
select * from table where id = 1
And you need
select * from table where id in (1,2,3,4,5)
So do this:
select * from table where id in (?,?,?,?,?)
And here's the easiest way that I suggest:
$inputids = array(1880000838,1880000878,1880000196);
$bindingsString = trim( str_repeat('?,', count($inputids)), ','); // '?,?,?'
// or
$bindingsString = implode(',', array_fill(0, count($inputids), '?')); // '?,?,?'
$sql = "select ... where id in ( {$bindingsString} ) ... "
DB::select($sql, $inputids);