planner: fix incorrect result for != all (subq)
(#19576)
#19831
Merged
!= all (subq)
(#19576)
#19831