SELECT 
  categories.category_id, 
  categories.parent_id, 
  categories.id_path, 
  category_descriptions.category, 
  categories.position, 
  categories.status, 
  categories.company_id, 
  categories.storefront_id, 
  seo_names.name as seo_name, 
  seo_names.path as seo_path, 
  category_descriptions.mega_m_category_banner_url, 
  category_descriptions.mega_m_category_svg_icon 
FROM 
  categories 
  LEFT JOIN category_descriptions ON categories.category_id = category_descriptions.category_id 
  AND category_descriptions.lang_code = 'en' 
  LEFT JOIN seo_names ON seo_names.object_id = categories.category_id 
  AND seo_names.type = 'c' 
  AND seo_names.dispatch = '' 
  AND seo_names.lang_code = 'en' 
WHERE 
  1 = 1 
  AND (
    categories.usergroup_ids = '' 
    OR FIND_IN_SET(0, categories.usergroup_ids) 
    OR FIND_IN_SET(1, categories.usergroup_ids)
  ) 
  AND categories.status IN ('A') 
  AND categories.id_path LIKE '71/%' 
  AND categories.storefront_id IN (0, 1) 
  AND categories.deleted_at IS NULL 
  AND categories.company_id = 0 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.00116

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.43"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "categories",
            "access_type": "range",
            "possible_keys": [
              "c_status",
              "id_path",
              "index_categories_on_deleted_at"
            ],
            "key": "id_path",
            "used_key_parts": [
              "id_path"
            ],
            "key_length": "767",
            "rows_examined_per_scan": 38,
            "rows_produced_per_join": 0,
            "filtered": "0.13",
            "index_condition": "(`goimagine`.`categories`.`id_path` like '71/%')",
            "cost_info": {
              "read_cost": "17.35",
              "eval_cost": "0.01",
              "prefix_cost": "17.36",
              "data_read_per_join": "134"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "deleted_at",
              "storefront_id"
            ],
            "attached_condition": "((`goimagine`.`categories`.`company_id` = 0) and ((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` = 'A') and (`goimagine`.`categories`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null))"
          }
        },
        {
          "table": {
            "table_name": "category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "goimagine.categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.02",
              "eval_cost": "0.01",
              "prefix_cost": "17.38",
              "data_read_per_join": "232"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category",
              "mega_m_category_banner_url",
              "mega_m_category_svg_icon"
            ]
          }
        },
        {
          "table": {
            "table_name": "seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "goimagine.categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.04",
              "eval_cost": "0.01",
              "prefix_cost": "17.43",
              "data_read_per_join": "86"
            },
            "used_columns": [
              "name",
              "object_id",
              "company_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id seo_name seo_path mega_m_category_banner_url mega_m_category_svg_icon
276 91 71/91/276 Journals 10 A 0 0 journals 71/91
6729 6727 71/6727/6729 Camping & Hiking 20 A 0 0 camping 71/6727
6730 6727 71/6727/6730 Boating & Fishing 30 A 0 0 boating-and-fishing 71/6727
6731 6727 71/6727/6731 Team Sports 40 A 0 0 team-sports 71/6727
74 71 71/74 Baby & Toddler Toys 100 A 0 0 baby-and-toddler-toys 71
127 71 71/127 Big Kid Toys 110 A 0 0 big-kid-toys 71
73 71 71/73 Games & Puzzles 115 A 0 0 games-and-puzzles 71
72 71 71/72 Stuffed Animals, Dolls & Plush 120 A 0 0 dolls-and-plush 71
75 71 71/75 Arts & Crafts Fun 130 A 0 0 arts-and-crafts-fun 71
88 71 71/88 Learning 140 A 0 0 learning 71
90 91 71/91/90 Book Accessories 160 A 0 0 book-accessories 71/91
91 71 71/91 Books 170 A 0 0 books 71
6654 91 71/91/6654 Coloring Books 170 A 0 0 coloring-books 71/91
6743 91 71/91/6743 Activity Books 180 A 0 0 activity-books 71/91
126 71 71/126 Costumes & Accessories 180 A 0 0 costumes-and-accessories 71
182 71 71/182 Reborn dolls 190 A 0 0 reborn-dolls 71
6727 71 71/6727 Sports & Outdoor 200 A 0 0 sports-and-outdoor 71
8954 71 71/8954 Music 220 A 0 0 music 71