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_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 '2669/%' 
  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.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "69.77"
    },
    "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": 47,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '2669/%')",
            "cost_info": {
              "read_cost": "21.32",
              "eval_cost": "0.09",
              "prefix_cost": "21.41",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "storefront_id"
            ],
            "attached_condition": "(((`cscart_db`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscart_db`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscart_db`.`cscart_categories`.`usergroup_ids`))) and (`cscart_db`.`cscart_categories`.`status` = 'A') and (`cscart_db`.`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": [
              "cscart_db.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.24",
              "eval_cost": "0.09",
              "prefix_cost": "21.74",
              "data_read_per_join": "2K"
            },
            "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": [
              "cscart_db.cscart_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 146,
            "rows_produced_per_join": 137,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.31",
              "eval_cost": "13.72",
              "prefix_cost": "69.77",
              "data_read_per_join": "232K"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id seo_name seo_path
2974 2670 2669/2670/2974 Beauty 0 A 0 0 beauty 2669/2670
2681 2678 2669/2678/2681 Biotin 0 A 0 0 biotin 2669/2678
2682 2678 2669/2678/2682 Collagen 0 A 0 0 collagen 2669/2678
296 2488 2669/2488/296 Detox 0 A 0 0 detox 2669/2488
281 2488 2669/2488/281 Diabetes 0 A 0 0 diabetes 2669/2488
277 2488 2669/2488/277 Digestive Care 0 A 0 0 digestive-care 2669/2488
2684 2675 2669/2675/2684 Electrolytes 0 A 0 0 electrolytes 2669/2675
2673 2670 2669/2670/2673 Gut Health 0 A 0 0 gut-health 2669/2670
620 2488 2669/2488/620 Immunity 0 A 0 0 immunity 2669/2488
2672 2670 2669/2670/2672 Immunity Boosters 0 A 0 0 immunity-boosters 2669/2670
2683 2675 2669/2675/2683 Multivitamins 0 A 0 0 multivitamins 2669/2675
2473 2683 2669/2675/2683/2473 Omega 3 & Fish Oil 0 A 0 0 omega-3-and-fish-oil 2669/2675/2683
2679 2678 2669/2678/2679 Omega3 0 A 0 0 omega3 2669/2678
3020 2675 2669/2675/3020 Omega3 0 A 0 0 omega3 2669/2675
2674 2670 2669/2670/2674 Other Health Concerns 0 A 0 0 other-health-concerns 2669/2670
2676 2675 2669/2675/2676 Protein 0 A 0 0 protein 2669/2675
290 2488 2669/2488/290 Sexual Health 0 A 0 0 sexual-wellness 2669/2488
2671 2670 2669/2670/2671 Sexual Wellness 0 A 0 0 sexual-wellness 2669/2670
2677 2670 2669/2670/2677 Sleep 0 A 0 0 sleep 2669/2670
2494 2463 2669/2675/2676/2463/2494 Snacks 0 A 0 0 snacks 2669/2675/2676/2463
2680 2670 2669/2670/2680 Weight Management 0 A 0 0 weight-management 2669/2670
508 2488 2669/2488/508 Women's Wellness 0 A 0 0 womens-wellness 2669/2488
2973 2670 2669/2670/2973 Womens Wellness 0 A 0 0 womens-wellness 2669/2670
1186 2463 2669/2675/2676/2463/1186 Protein Energy Bars 2 A 0 0 protein-and-energy-bars-en 2669/2675/2676/2463
2678 2669 2669/2678 Beauty 10 A 0 0 beauty 2669
3055 2670 2669/2670/3055 Pain Relief 10 A 0 0 pain-relief 2669/2670
2438 2676 2669/2675/2676/2438 Whey Protein 10 A 0 0 whey-protein 2669/2675/2676
2670 2669 2669/2670 Health 20 A 0 0 health 2669
2463 2676 2669/2675/2676/2463 Protein Food 20 A 0 0 protein-food 2669/2675/2676
782 2488 2669/2488/782 Immunity Boosters 30 A 0 0 immunity-boost 2669/2488
2675 2669 2669/2675 Nutrition 30 A 0 0 nutrition 2669
2453 2676 2669/2675/2676/2453 Plant Protein 30 A 0 0 plant-protein 2669/2675/2676
2488 2669 2669/2488 Ayurveda, Herbs & Juices 40 A 0 0 ayurveda-herbs-and-juices 2669