Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It seems to work:
$query->order('a.featured DESC,' . $query->rand());
ORDER BY RAND(), this is not the fastest operation, but if the query will be executed frequently, it can be accelerated
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question