MySQL - Order by category_id try to avoid having duplicates close to each other MySQL - Order by category_id try to avoid having duplicates close to each other mysql mysql