SELECT category.id as category_id, category.alias as category_alias, category.title_ru, category.title_menu, category.image, category.icon, (select GROUP_CONCAT(`title_menu`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `title_menu_item`, (select GROUP_CONCAT(`title`) from `catalog` as catalog where catalog.category_id = category.id) as `title`, (select GROUP_CONCAT(`alias`) from `catalog` as catalog where catalog.category_id = category.id) as `alias`, (select GROUP_CONCAT(`reviews`) from `catalog` as catalog where catalog.category_id = category.id) as `reviews`, (select GROUP_CONCAT(`rating`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `rating`, (select GROUP_CONCAT(`rating_menu`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `rating_menu`, (select GROUP_CONCAT(`video`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `video`, (select GROUP_CONCAT(`position`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `position`, (select GROUP_CONCAT(`id`) from `catalog` as catalog where catalog.category_id = category.id order by category.position) as `id` FROM category as category order by category.position ASC