Support for WPML

Use a NOT IN statement when checking for conflicting post_ids to
support WPML since the meta values will be set for each language but
shouldn’t count as a duplicate.