in the code below, I get the query about how many products there are in the categories under an ad category.
However, when I use the following where words, the query take