if you are using setFilter then it is used on the dataset itself like this:
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
You can’t have the data query mixed in with it:
https://www.wix.com/corvid/reference/wix-data.html#query