如何删除下面计数大于 1 的 image_media_set 和 media_set 表。
SELECT media_set.id,
(SELECT COUNT(*)
FROM image_media_set
WHERE image_media_set.media_set_id = media_set.id) AS imageCount
FROM media_set
INNER JOIN image_media_set
ON media_set.id = image_media_set.media_set_id
WHERE image_media_set.image_id = 6405;