fixed aliasing issue in negated queries
not sure