Passing dynamic variable in IN statement in sql query

I am writing a sql query “select * from groups where parent_id = 0 and group_id IN (?) limit 10” and i pass a list of numbers in this dynamic field. But when i pass the value in this field, the output gives the result for only first value matches. Rest are ignored.
After some time, i realized that the value passed in this dynamic field is passed in quotes like select * from groups where parent_id = 0 and group_id in (‘200,201,202’). But i want to pass them only as numbers select * from groups where parent_id = 0 and group_id in (200,201,202) to get the correct output.
I have even tried to convert ‘200,201,202’ into unsigned but output remains the same and when i run it using select * from groups where parent_id = 0 and group_id in (200,201,202) i.e. as static parameters, i get the correct output. But i want to use dynamic parameters.

Can anyone please guide and help me in this situation.?