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 '5742/5838/%' 
  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.00216

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "45.90"
    },
    "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": 31,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5742/5838/%')",
            "cost_info": {
              "read_cost": "44.29",
              "eval_cost": "0.12",
              "prefix_cost": "44.41",
              "data_read_per_join": "3K"
            },
            "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": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.62",
              "eval_cost": "0.12",
              "prefix_cost": "45.15",
              "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": [
              "webmarco.cscart_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.62",
              "eval_cost": "0.12",
              "prefix_cost": "45.90",
              "data_read_per_join": "1K"
            },
            "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
6631 6304 5742/5838/6263/6304/6631 Copystands 0 A 0 0 0 copystands-en 5742/5838/6263/6304
6263 5838 5742/5838/6263 Darkroom 0 A 0 0 0 darkroom-en 5742/5838
6713 6305 5742/5838/6263/6305/6713 Darkroom Easels 0 A 0 0 0 darkroom-easels-en 5742/5838/6263/6305
6632 6304 5742/5838/6263/6304/6632 Darkroom Sinks 0 A 0 0 0 darkroom-sinks-en 5742/5838/6263/6304
6714 6305 5742/5838/6263/6305/6714 Darkroom Timers 0 A 0 0 0 darkroom-timers-en 5742/5838/6263/6305
6304 6263 5742/5838/6263/6304 Developing & Processing Equipment 0 A 0 0 0 developing-and-processing-equipment-en 5742/5838/6263
6633 6304 5742/5838/6263/6304/6633 Developing Tanks & Reels 0 A 0 0 0 developing-tanks-and-reels-en 5742/5838/6263/6304
6305 6263 5742/5838/6263/6305 Enlarging Equipment 0 A 0 0 0 enlarging-equipment-en 5742/5838/6263
6762 6388 5742/5838/6264/6388/6762 Flash Diffusers 0 A 0 0 1 flash-diffusers-en 5742/5838/6264/6388
6763 6388 5742/5838/6264/6388/6763 Flash Reflectors 0 A 0 0 0 flash-reflectors-en 5742/5838/6264/6388
6715 6305 5742/5838/6263/6305/6715 Focusing Aids 0 A 0 0 0 focusing-aids-en 5742/5838/6263/6305
6384 6264 5742/5838/6264/6384 Light Meter Accessories 0 A 0 0 0 light-meter-accessories-en 5742/5838/6264
6385 6264 5742/5838/6264/6385 Light Meters 0 A 0 0 0 light-meters-en 5742/5838/6264
6264 5838 5742/5838/6264 Lighting & Studio 0 A 0 0 0 lighting-and-studio-en 5742/5838
6764 6388 5742/5838/6264/6388/6764 Lighting Filters & Gobos 0 A 0 0 0 lighting-filters-and-gobos-en 5742/5838/6264/6388
6265 5838 5742/5838/6265 Photo Mounting Supplies 0 A 0 0 0 photo-mounting-supplies-en 5742/5838
6266 5838 5742/5838/6266 Photo Negative & Slide Storage 0 A 0 0 0 photo-negative-and-slide-storage-en 5742/5838
6717 6305 5742/5838/6263/6305/6717 Photographic Analyzers 0 A 0 0 0 photographic-analyzers-en 5742/5838/6263/6305
6306 6263 5742/5838/6263/6306 Photographic Chemicals 0 A 0 0 0 photographic-chemicals-en 5742/5838/6263
6718 6305 5742/5838/6263/6305/6718 Photographic Enlargers 0 A 0 0 0 photographic-enlargers-en 5742/5838/6263/6305
6307 6263 5742/5838/6263/6307 Photographic Paper 0 A 0 0 1 photographic-paper-en 5742/5838/6263
6634 6304 5742/5838/6263/6304/6634 Print Trays, Washers & Dryers 0 A 0 0 0 print-trays-washers-and-dryers-en 5742/5838/6263/6304
6635 6304 5742/5838/6263/6304/6635 Retouching Equipment & Supplies 0 A 0 0 0 retouching-equipment-and-supplies-en 5742/5838/6263/6304
6308 6263 5742/5838/6263/6308 Safelights 0 A 0 0 0 safelights-en 5742/5838/6263
6765 6388 5742/5838/6264/6388/6765 Softboxes 0 A 0 0 0 softboxes-en 5742/5838/6264/6388
6386 6264 5742/5838/6264/6386 Studio Backgrounds 0 A 0 0 0 studio-backgrounds-en 5742/5838/6264
6387 6264 5742/5838/6264/6387 Studio Light & Flash Accessories 0 A 0 0 0 studio-light-and-flash-accessories-en 5742/5838/6264
6388 6264 5742/5838/6264/6388 Studio Lighting Controls 0 A 0 0 0 studio-lighting-controls-en 5742/5838/6264
6389 6264 5742/5838/6264/6389 Studio Stand & Mount Accessories 0 A 0 0 0 studio-stand-and-mount-accessories-en 5742/5838/6264
6390 6264 5742/5838/6264/6390 Studio Stands & Mounts 0 A 0 0 0 studio-stands-and-mounts-en 5742/5838/6264
8989 6264 5742/5838/6264/8989 Studio Lights & Flashes 10 A 0 0 0 studio-lights-and-flashes 5742/5838/6264