I want to use a query just like this; but I know it's not true usage.
In total I need 15 category ids (4,5,6,9,10 and random 10 ids other than the specified)
Tried this
SELECT *
FROM categories
WHERE id IN (CONCAT('4,5,6,9,10', SELECT id from categories WHERE id NOT IN(4,5,6,9,10) ORDER BY RAND()))
LIMIT 0,10
Could you help me to edit this one?
Thanks a lot.