SQL – STUFF XML with openquery is matching on values that should’ve been filtered out in the where clause? This is a long one, so apologies in advance.