please change the query to use the query builder and pass the array to the event.