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 '5/%' 
  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.00144

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "29.15"
    },
    "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": 64,
            "rows_produced_per_join": 0,
            "filtered": "0.10",
            "index_condition": "(`goimagine`.`categories`.`id_path` like '5/%')",
            "cost_info": {
              "read_cost": "29.05",
              "eval_cost": "0.01",
              "prefix_cost": "29.06",
              "data_read_per_join": "171"
            },
            "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": "29.09",
              "data_read_per_join": "297"
            },
            "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.06",
              "eval_cost": "0.01",
              "prefix_cost": "29.15",
              "data_read_per_join": "111"
            },
            "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
6724 97 5/97/6724 Adult Birthday 10 A 0 0 adult-birthday 5/97
6718 27 5/27/6718 Bouquets & Corsages 10 A 0 0 bouquets-and-corsages 5/27
6713 28 5/28/6713 Bridal Gowns & Dresses 10 A 0 0 bridal-gowns 5/28
6691 26 5/26/6691 Bridesmaid & Groomsmen Gifts 10 A 0 0 bridesmaid-and-groomsmen-gifts 5/26
6685 25 5/25/6685 Centerpieces 10 A 0 0 centerpieces 5/25
24 5 5/24 Invitations & Paper 10 A 0 0 invites-paper 5
6655 62 5/62/6655 Party Decor 10 A 0 0 party-decor 5/62
6668 92 5/92/6668 Thank You 10 A 0 0 thank-you 5/92
6692 26 5/26/6692 Wedding Favors 10 A 0 0 wedding-favors 5/26
6683 25 5/25/6683 Wedding Signs 10 A 0 0 wedding-signs 5/25
92 5 5/92 Greeting Cards 11 A 0 0 greeting-cards 5
93 5 5/93 Gift Wrap 12 A 0 0 gift-wrap 5
62 5 5/62 Party Supplies 15 A 0 0 party-supplies 5
6656 62 5/62/6656 Banners 20 A 0 0 banners 5/62
6669 92 5/92/6669 Birthday Cards 20 A 0 0 birthday-cards 5/92
6661 24 5/24/6661 Blank Cards 20 A 0 0 blank-cards 5/24
6684 25 5/25/6684 Cake Toppers 20 A 0 0 cake-toppers 5/25
6725 97 5/97/6725 Children's Birthday 20 A 0 0 childrens-birthday 5/97
6679 93 5/93/6679 Gift Bags 20 A 0 0 gift-bags 5/93
25 5 5/25 Wedding Decorations 20 A 0 0 wedding-decorations 5
6719 27 5/27/6719 Wedding Hair Accessories 20 A 0 0 wedding-hair 5/27
6726 97 5/97/6726 Age Specific Birthday 30 A 0 0 age-specific-birthday 5/97
6657 62 5/62/6657 Baking Accessories 30 A 0 0 baking-accessories 5/62
6670 92 5/92/6670 Get Well 30 A 0 0 get-well 5/92
6680 93 5/93/6680 Gift Boxes 30 A 0 0 gift-boxes 5/93
26 5 5/26 Wedding Gifts 30 A 0 0 wedding-gifts 5
6662 24 5/24/6662 Writing Paper 30 A 0 0 writing-paper 5/24
6663 24 5/24/6663 Labels & Tags 40 A 0 0 labels-and-tags 5/24
6671 92 5/92/6671 Love & Wedding 40 A 0 0 love-and-wedding 5/92
6658 62 5/62/6658 Party Favors 40 A 0 0 party-favors 5/62
6681 93 5/93/6681 Ribbon & Bows 40 A 0 0 ribbon-and-bows 5/93
27 5 5/27 Wedding Accessories & Jewelry 40 A 0 0 wedding-accessories 5
6672 92 5/92/6672 Anniversary 50 A 0 0 anniversary 5/92
9936 93 5/93/9936 Gift Tags 50 A 0 0 gift-tags 5/93
6659 62 5/62/6659 Party Games 50 A 0 0 party-games 5/62
28 5 5/28 Wedding Attire 50 A 0 0 wedding-attire 5
6686 62 5/62/6686 Cake Toppers 60 A 0 0 cake-toppers 5/62
6673 92 5/92/6673 New Baby 60 A 0 0 new-baby 5/92
6720 27 5/27/6720 Shawls & Wraps 60 A 0 0 shawls-and-wraps 5/27
6674 92 5/92/6674 Sympathy 70 A 0 0 sympathy 5/92
94 5 5/94 Wedding Games 80 A 0 0 wedding-games 5
6723 27 5/27/6723 Neckties 90 A 0 0 neckties 5/27
96 5 5/96 Graduation 100 A 0 0 graduation 5
97 5 5/97 Birthday 110 A 0 0 birthday 5
98 5 5/98 Religious Celebrations 120 A 0 0 religious-celebrations 5
2185 5 5/2185 Baby Showers 130 A 0 0 baby-showers 5