I used a query something like this:
select location, pin from cities
where people > 500000
and date >'2022-01-01'
[[and city in (select value from STRING_SPLIT({{city}}, ','))]]
group by city;
It is returning an error similar to:
The column index is out of range: 2, number of columns: 1.