Question about sql filter

How to set 2 variables in one question at the same time?

What is wrong with your code?