DELETE FROM upgradesWHERE first_item_id IN ( SELECT first_item_id FROM upgrades GROUP BY first_item_id HAVING COUNT(*) > 1)