There was a problem opening the record set:
The connection cannot be used to perform this operation. It is either closed or invalid in this context.

(SELECT Artist.ArtistID AS AID FROM Artist WHERE Artist.ArtistID = 397) UNION (SELECT xxArtistArtist.ArtistID AS AID FROM xxArtistArtist WHERE xxArtistArtist.RelatedArtistID = 397 AND xxArtistArtist.SameAs = True) UNION (SELECT xxArtistArtist.RelatedArtistID AS AID FROM xxArtistArtist WHERE xxArtistArtist.ArtistID = 397 AND xxArtistArtist.SameAs = True)