-- Check if any product has >1 offer from SAME feed (would indicate broken dedup)
SELECT p.name, f.name as feed, COUNT(po.id) as offers
FROM products p
JOIN product_offers po ON po.product_id = p.id
JOIN feeds f ON f.id = po.feed_id
GROUP BY p.id, p.name, f.id, f.name
HAVING COUNT(po.id) > 1
LIMIT 10;
