If the category is Null, then it cannot be compared to anything (whether equal to or not equal to). You'll have to handle nulls in a special manner as already described earlier. I asked earlier what other categories were there. I guess you missed it. If there's only "accounts" and nothing else...