DELETE FROM cat_product
WHERE IN
(
SELECT * FROM cat_product
ORDER BY RAND()
LIMIT 1
)
запрос для выборки рандомной строки с удалением.Так для выборки или для удаления?
DELETE FROM `cat_product` WHERE `id` IN (SELECT `inner`.`id` FROM(
SELECT `cat_product`.`id` FROM `cat_product` ORDER BY RAND() LIMIT 1
) as `inner`)