SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way to do that is by binding the array itself as a parameter:
$queryBuilder->andWhere('r.winner IN (:ids)') ->setParameter('ids', $ids);