UPDATE `table`
SET `updated` = 0
WHERE `supplier_id` = :supplierId;
INSERT INTO `table` (..., `supplier`, `updated`)
VALUES (..., :supplierId, 1)
ON DUPLICATE KEY UPDATE ..., `updated` = 1;
DELETE FROM `table`
WHERE `supplier` = :supplierId AND `updated` = 0;