I have this query:
SELECT *
FROM videos
WHERE Autor = 'LittleBabyBum ® Español'
ORDER BY RAND()
LIMIT 10)
UNION (
SELECT *
FROM videos
WHERE Categoría = 'Música - Niños'
AND Autor <>'LittleBabyBum ® Español'
ORDER BY RAND()
LIMIT 5
And it works really good.
But actually I'm with problems to use in codeigniter ... someone knows how to use it?
Thanks.