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 '3/%' 
  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.00180

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "41.34"
    },
    "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": 91,
            "rows_produced_per_join": 0,
            "filtered": "0.10",
            "index_condition": "(`goimagine`.`categories`.`id_path` like '3/%')",
            "cost_info": {
              "read_cost": "41.20",
              "eval_cost": "0.01",
              "prefix_cost": "41.21",
              "data_read_per_join": "243"
            },
            "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.03",
              "eval_cost": "0.01",
              "prefix_cost": "41.25",
              "data_read_per_join": "422"
            },
            "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.08",
              "eval_cost": "0.01",
              "prefix_cost": "41.34",
              "data_read_per_join": "157"
            },
            "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
358 357 3/22/357/358 Bodysuits 10 A 0 0 bodysuits 3/22/357
342 22 3/22/342 Boys Clothing 10 A 0 0 boys-clothing 3/22
383 85 3/85/383 Headbands & Turbans 10 A 0 0 headbands-and-turbans 3/85
367 14 3/14/367 Market Bags & Totes 10 A 0 0 market-bags-and-totes 3/14
6649 178 3/178/6649 Patches & Pins 10 A 0 0 patches-and-pins 3/178
380 84 3/84/380 Scarves 10 A 0 0 scarves 3/84
336 21 3/21/336 Shirts 10 A 0 0 shirts 3/21
329 20 3/20/329 Shirts, Tops & Tees 10 A 0 0 tops-and-tees 3/20
350 349 3/22/349/350 Tops & Tees 10 A 0 0 tops-and-tees 3/22/349
388 86 3/86/388 Winter Hats 10 A 0 0 winter-hats 3/86
20 3 3/20 Women's 10 A 0 0 womens 3
384 85 3/85/384 Barrettes & Clips 20 A 0 0 barrettes-and-clips 3/85
359 357 3/22/357/359 Clothing Sets 20 A 0 0 clothing-sets 3/22/357
351 349 3/22/349/351 Dresses & Skirts 20 A 0 0 dresses-and-skirts 3/22/349
349 22 3/22/349 Girls Clothing 20 A 0 0 girls-clothing 3/22
21 3 3/21 Men's 20 A 0 0 mens 3
368 14 3/14/368 Pouches & Coin Purses 20 A 0 0 pouches-and-coin-purses 3/14
964 20 3/20/964 Sweatshirts & Sweatpants 20 A 0 0 sweatshirts-and-sweatpants 3/20
381 84 3/84/381 Wraps & Shawls 20 A 0 0 wraps-and-shawls 3/84
357 22 3/22/357 Baby Clothing 30 A 0 0 baby-clothing 3/22
382 84 3/84/382 Bandanas 30 A 0 0 bandanas 3/84
360 357 3/22/357/360 Bloomers & Diaper Covers 30 A 0 0 bloomers-and-diaper-covers 3/22/357
369 14 3/14/369 Shoulder 30 A 0 0 shoulder 3/14
390 86 3/86/390 Sun Hats & Visors 30 A 0 0 sun-hats-and-visors 3/86
14 3 3/14 Bags & Purses 40 A 0 0 bags-and-purses 3
391 86 3/86/391 Baseball & Trucker Hats 40 A 0 0 baseball-and-trucker-hats 3/86
370 14 3/14/370 Crossbody & Messenger 40 A 0 0 crossbody-and-messenger 3/14
353 349 3/22/349/353 Sweaters & Sweatshirts 40 A 0 0 sweaters-and-sweatshirts 3/22/349
386 85 3/85/386 Wreaths & Tiaras 40 A 0 0 wreaths-and-tiaras 3/85
86 3 3/86 Hats 45 A 0 0 hats 3
392 86 3/86/392 Fascinators & Mini Hats 50 A 0 0 fascinators-and-mini-hats 3/86
387 85 3/85/387 Hair Pins 50 A 0 0 hair-pins 3/85
371 14 3/14/371 Hobo 50 A 0 0 hobo 3/14
331 20 3/20/331 Pants 50 A 0 0 pants 3/20
84 3 3/84 Scarves & Wraps 50 A 0 0 scarves-and-wraps 3
20087 3 3/20087 Gloves & Mittens 55 A 0 0 gloves 3
15774 86 3/86/15774 Hat Accessories 55 A 0 0 hat-accessories 3/86
85 3 3/85 Hair Accessories 60 A 0 0 hair-accessories 3
11904 85 3/85/11904 Hair Bows 60 A 0 0 hair-bows 3/85
393 20087 3/20087/393 Mittens 60 A 0 0 mittens 3/20087
372 14 3/14/372 Wristlets 60 A 0 0 wristlets 3/14
364 357 3/22/357/364 Baby Accessories 70 A 0 0 baby-accessories 3/22/357
373 14 3/14/373 Clutch & Evening Bags 70 A 0 0 clutch-and-evening-bags 3/14
11912 85 3/85/11912 Scrunchies & Hair Ties 70 A 0 0 scrunchies-and-hair-ties 3/85
394 20087 3/20087/394 Winter Gloves 70 A 0 0 winter-gloves 3/20087
395 20087 3/20087/395 Arm Warmers 80 A 0 0 arm-warmers 3/20087
87 3 3/87 Keychains & Lanyards 80 A 0 0 keychains-and-lanyards 3
374 14 3/14/374 Purse Inserts & Straps 80 A 0 0 purse-inserts-and-straps 3/14
334 20 3/20/334 Sweaters 80 A 0 0 sweaters 3/20
375 14 3/14/375 Backpacks 90 A 0 0 backpacks 3/14
376 14 3/14/376 Diaper Bags 100 A 0 0 diaper-bags 3/14
377 14 3/14/377 Duffle & Overnight Bags 110 A 0 0 duffle-and-overnight-bags 3/14
130 3 3/130 Shoes 110 A 0 0 shoes 3
178 3 3/178 Clothing Accessories 120 A 0 0 clothing-accessories 3
378 14 3/14/378 Cosmetic & Toiletry Bags 120 A 0 0 cosmetic-and-toiletry-bags 3/14
379 14 3/14/379 Luggage & Travel 130 A 0 0 luggage-and-travel 3/14
6648 14 3/14/6648 Wallets & Money Clips 140 A 0 0 wallets 3/14
10891 14 3/14/10891 Bag Accessories 150 A 0 0 bag-accessories 3/14