metabrainz/musicbrainz-server — pull request #33 by ianmcorvidae (2013-01-23 17:52:15+00:00)
Title: MBS-3962: Really exclude artists/labels/etc. when "!=" is used

Using a join (as before) doesn't work because an edit can be linked to multiple artists/labels/whatever, so it's easy to find *some* row of edit_$entity that doesn't mention the provided artist. Using WHERE NOT EXISTS (SELECT) instead.