Querys with comma in the result return always empty

So when I try to get the result of a query that has a comma (or - or _) the result is always empty.

I’ve checked my database already and when I do the select in there, the results are all fine.
I’m using variables to return a list of a group by items by the way.
If anyone could help me, thanks.