SELECT 
  cscart_categories.category_id, 
  cscart_categories.parent_id, 
  cscart_categories.id_path, 
  cscart_category_descriptions.category, 
  cscart_categories.position, 
  cscart_categories.status, 
  cscart_categories.company_id, 
  cscart_categories.storefront_id, 
  cscart_categories.product_count, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path 
FROM 
  cscart_categories 
  LEFT JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id 
  AND cscart_category_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_categories.category_id 
  AND cscart_seo_names.type = 'c' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
WHERE 
  1 = 1 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A') 
  AND cscart_categories.id_path LIKE '2653/2656/%' 
  AND cscart_categories.storefront_id IN (0, 1) 
ORDER BY 
  cscart_categories.is_trash asc, 
  cscart_categories.position asc, 
  cscart_category_descriptions.category asc

Query time 0.00260

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "96.58"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "range",
            "possible_keys": [
              "c_status",
              "id_path"
            ],
            "key": "id_path",
            "used_key_parts": [
              "id_path"
            ],
            "key_length": "767",
            "rows_examined_per_scan": 66,
            "rows_produced_per_join": 1,
            "filtered": "2.00",
            "index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2653/2656/%')",
            "cost_info": {
              "read_cost": "93.15",
              "eval_cost": "0.26",
              "prefix_cost": "93.41",
              "data_read_per_join": "7K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "product_count",
              "position",
              "is_trash",
              "storefront_id"
            ],
            "attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`storefront_id` in (0,1)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "webmarco.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.32",
              "eval_cost": "0.26",
              "prefix_cost": "94.99",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "webmarco.cscart_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.32",
              "eval_cost": "0.26",
              "prefix_cost": "96.58",
              "data_read_per_join": "2K"
            },
            "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 product_count seo_name seo_path
9972 2656 2653/2656/9972 Sunglasses 0 A 0 0 95 sunglasses-en 2653/2656
9252 2656 2653/2656/9252 Maternity Belts 0 A 0 0 0 maternity-belts 2653/2656
9251 2656 2653/2656/9251 Neckties 0 A 0 0 68 neckties-en 2653/2656
9253 9252 2653/2656/9252/9253 Support Bands 0 A 0 0 1 support-bands 2653/2656/9252
9254 2656 2653/2656/9254 Suspenders 0 A 0 0 1 suspenders-en 2653/2656
2698 2688 2653/2656/2688/2698 Baby & Toddler Belts 10 A 0 0 0 baby-and-toddler-belts 2653/2656/2688
2802 2798 2653/2656/2757/2798/2802 Barrettes 10 A 0 0 0 barrettes 2653/2656/2757/2798
2742 2740 2653/2656/2740/2742 Bridal Veils 10 A 0 0 1 bridal-veils 2653/2656/2740
2758 2757 2653/2656/2757/2758 Hair Bun & Volume Shapers 10 A 0 0 1 hair-bun-and-volume-shapers 2653/2656/2757
2712 2710 2653/2656/2710/2712 Obis 10 A 0 0 0 obis 2653/2656/2710
2694 2692 2653/2656/2692/2694 Scarves 10 A 0 0 49 scarves 2653/2656/2692
2847 2841 2653/2656/2757/2841/2847 Wig Caps 10 A 0 0 0 wig-caps 2653/2656/2757/2841
2705 2688 2653/2656/2688/2705 Baby & Toddler Gloves & Mittens 20 A 0 0 0 baby-and-toddler-gloves-and-mittens 2653/2656/2688
2806 2798 2653/2656/2757/2798/2806 Hair Claws & Clips 20 A 0 0 5 hair-claws-and-clips 2653/2656/2757/2798
2764 2757 2653/2656/2757/2764 Hair Combs 20 A 0 0 0 hair-combs 2653/2656/2757
2697 2692 2653/2656/2692/2697 Shawls 20 A 0 0 14 shawls 2653/2656/2692
2852 2841 2653/2656/2757/2841/2852 Wig Glue & Tape 20 A 0 0 0 wig-glue-and-tape 2653/2656/2757/2841
2716 2688 2653/2656/2688/2716 Baby & Toddler Hats 30 A 0 0 58 baby-and-toddler-hats 2653/2656/2688
2766 2757 2653/2656/2757/2766 Hair Extensions 30 A 0 0 1 hair-extensions 2653/2656/2757
2809 2798 2653/2656/2757/2798/2809 Hair Pins 30 A 0 0 0 hair-pins 2653/2656/2757/2798
2659 2656 2653/2656/2659 Headwear 30 A 0 0 1 headwear 2653/2656
2715 2710 2653/2656/2710/2715 Tabi Socks 30 A 0 0 0 tabi-socks 2653/2656/2710
2720 2688 2653/2656/2688/2720 Baby Protective Wear 40 A 0 0 0 baby-protective-wear 2653/2656/2688
2660 2659 2653/2656/2659/2660 Fascinators 40 A 0 0 0 fascinators 2653/2656/2659
2768 2757 2653/2656/2757/2768 Hair Forks & Sticks 40 A 0 0 0 hair-forks-and-sticks 2653/2656/2757
2669 2656 2653/2656/2669 Leg Warmers 40 A 0 0 0 leg-warmers 2653/2656
2731 2656 2653/2656/2731 Bandanas & Headties 50 A 0 0 9 bandanas-and-headties 2653/2656
2771 2757 2653/2656/2757/2771 Hair Nets 50 A 0 0 0 hair-nets 2653/2656/2757
2663 2659 2653/2656/2659/2663 Headdresses 50 A 0 0 0 headdresses 2653/2656/2659
2673 2656 2653/2656/2673 Leis 50 A 0 0 0 leis 2653/2656
2678 2656 2653/2656/2678 Arm Warmers & Sleeves 60 A 0 0 0 arm-warmers-and-sleeves 2653/2656
2798 2757 2653/2656/2757/2798 Hair Pins, Claws & Clips 60 A 0 0 25 hair-pins-claws-and-clips 2653/2656/2757
2666 2659 2653/2656/2659/2666 Turbans 60 A 0 0 0 turbans 2653/2656/2659
2817 2757 2653/2656/2757/2817 Hair Wreaths 70 A 0 0 12 hair-wreaths 2653/2656/2757
2680 2656 2653/2656/2680 Maternity Belts & Support Bands 70 A 0 0 0 maternity-belts-and-support-bands 2653/2656
2683 2656 2653/2656/2683 Neck Gaiters 80 A 0 0 1 neck-gaiters 2653/2656
2684 2656 2653/2656/2684 Neckties 90 A 0 0 54 neckties 2653/2656
2687 2656 2653/2656/2687 Pinback Buttons 100 A 0 0 0 pinback-buttons 2653/2656
2688 2656 2653/2656/2688 Baby & Toddler Clothing Accessories 110 A 0 0 19 baby-and-toddler-clothing-accessories 2653/2656
2691 2656 2653/2656/2691 Sashes 120 A 0 0 2 sashes 2653/2656
2692 2656 2653/2656/2692 Scarves & Shawls 130 A 0 0 58 scarves-and-shawls 2653/2656
2700 2656 2653/2656/2700 Sunglasses 140 A 0 0 99 sunglasses 2653/2656
2703 2656 2653/2656/2703 Suspenders 150 A 0 0 0 suspenders 2653/2656
2707 2656 2653/2656/2707 Tie Clips 160 A 0 0 1 tie-clips 2653/2656
2710 2656 2653/2656/2710 Traditional Clothing Accessories 170 A 0 0 2 traditional-clothing-accessories 2653/2656
2718 2656 2653/2656/2718 Wristbands 180 A 0 0 0 wristbands 2653/2656
2723 2656 2653/2656/2723 Balaclavas 190 A 0 0 2 balaclavas 2653/2656
2727 2731 2653/2656/2731/2727 Bandanas 200 A 0 0 14 bandanas 2653/2656/2731
2737 2656 2653/2656/2737 Belts 200 A 0 0 43 belts 2653/2656
2740 2656 2653/2656/2740 Bridal Accessories 210 A 0 0 0 bridal-accessories 2653/2656
2733 2731 2653/2656/2731/2733 Hair Care Wraps 210 A 0 0 0 hair-care-wraps 2653/2656/2731
2744 2656 2653/2656/2744 Button Studs 220 A 0 0 2 button-studs 2653/2656
2747 2656 2653/2656/2747 Collar Stays 230 A 0 0 0 collar-stays 2653/2656
2749 2656 2653/2656/2749 Cufflinks 240 A 0 0 0 cufflinks 2653/2656
2750 2656 2653/2656/2750 Decorative Fans 250 A 0 0 0 decorative-fans 2653/2656
2752 2656 2653/2656/2752 Earmuffs 260 A 0 0 0 earmuffs 2653/2656
2755 2656 2653/2656/2755 Gloves & Mittens 270 A 0 0 50 gloves-and-mittens 2653/2656
2757 2656 2653/2656/2757 Hair Accessories 280 A 0 0 67 hair-accessories 2653/2656
2774 2656 2653/2656/2774 Hand Muffs 290 A 0 0 0 hand-muffs-en 2653/2656
2780 2656 2653/2656/2780 Handkerchiefs 300 A 0 0 12 handkerchiefs 2653/2656
2786 2656 2653/2656/2786 Hats 310 A 0 0 222 hats 2653/2656
2819 2757 2653/2656/2757/2819 Headbands 1040 A 0 0 9 headbands 2653/2656/2757
2825 2757 2653/2656/2757/2825 Ponytail Holders 1050 A 0 0 10 ponytail-holders 2653/2656/2757
2828 2757 2653/2656/2757/2828 Tiaras 1060 A 0 0 0 tiaras 2653/2656/2757
2841 2757 2653/2656/2757/2841 Wig Accessories 1070 A 0 0 0 wig-accessories 2653/2656/2757
2842 2757 2653/2656/2757/2842 Wigs 1080 A 0 0 0 wigs-en 2653/2656/2757