Mixing different categories results, ordered by score in MySQL
In my PHP application, I have a mysql table of articles which has the following columns: article_id articletext category_id score Each article has a score which is calculated based on how popular it is, and belongs to a specific category (there are around 10 categories available) My question is: how can I perform a query that returns the highest scored articles while alternating them by categories so that if possible, no same-category articles are returned consecutively. For example if the highest scored article has score: 100 the returning set would be something like: article_id articletext