I would be happy to use ? placeholder to populate ids for SQL IN clause. Unfortunately the following does not work Such code results in database error similar to: Wrapping ? placeholder with brackets (e.g. IN (?)) gives another type of error: Is there a way to accomplish this? P.S. Looks like it’s a horrible title, have no idea how