Thank you again for your response. I did what you suggested and same result, showing all the users and not filtering. When I var_dump the array and the $query the output looks correct. For some reason it just isn’t filtering the users based on these.
Thanks very much for that. I tried it out but it just shows all members even when I change the conditions so something is a bit off. No errors at least.