I have this query that returns the results by ordering it by focus.name ASC. I would like to expand on this by first ordering it by rand() then ordering it by focus.name and limiting it by 10.
SELECT * FROM vendor_products WHERE
vendor_products.focus_id IN (SELECT focus.id FROM focus WHERE
focus.name=? AND
mydelete='0' ORDER BY focus.name ASC) AND product_id=?
AND mydelete='0' ORDER BY focus_id ASC
do something like this
see here