Query using multiple values

Ok, so I have multiple records related to a value. The problem is that I wanted to make a search condition from each of those multiple records on another base. I’ve read this article: https://docs.wappler.io/t/filtering-database-query-with-multiple-checkboxes/4053 but instead of using checkboxes, I used the array that the database retreived me. But it retreives me erorr.

The question is: in the checkboxes, the way to split each value was using comma, when I get the values from a database, is the same procedure?