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 '6473/6568/%' 
  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.00288

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "43.00"
    },
    "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": 29,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '6473/6568/%')",
            "cost_info": {
              "read_cost": "41.49",
              "eval_cost": "0.12",
              "prefix_cost": "41.61",
              "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.58",
              "eval_cost": "0.12",
              "prefix_cost": "42.31",
              "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.58",
              "eval_cost": "0.12",
              "prefix_cost": "43.00",
              "data_read_per_join": "1006"
            },
            "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
6580 6574 6473/6568/6574/6580 Acid Neutralizers 10 A 0 0 0 acid-neutralizers 6473/6568/6574
6711 6699 6473/6568/6699/6711 Bricks & Concrete Blocks 10 A 0 0 1 bricks-and-concrete-blocks 6473/6568/6699
6574 6568 6473/6568/6574 Chemicals 10 A 0 0 0 chemicals 6473/6568
6760 6749 6473/6568/6749/6760 Paint 10 A 0 0 0 paint 6473/6568/6749
6590 6574 6473/6568/6574/6590 Ammonia 20 A 0 0 0 ammonia 6473/6568/6574
6729 6699 6473/6568/6699/6729 Cement, Mortar & Concrete Mixes 20 A 0 0 1 cement-mortar-and-concrete-mixes 6473/6568/6699
6667 6568 6473/6568/6667 Hardware Glue & Adhesives 20 A 0 0 1 hardware-glue-and-adhesives 6473/6568
6768 6749 6473/6568/6749/6768 Paint Binders 20 A 0 0 4 paint-binders 6473/6568/6749
6601 6574 6473/6568/6574/6601 Chimney Cleaners 30 A 0 0 0 chimney-cleaners 6473/6568/6574
6742 6699 6473/6568/6699/6742 Grout 30 A 0 0 0 grout 6473/6568/6699
6679 6568 6473/6568/6679 Hardware Tape 30 A 0 0 0 hardware-tape 6473/6568
6776 6749 6473/6568/6749/6776 Primers 30 A 0 0 0 primers 6473/6568/6749
6608 6574 6473/6568/6574/6608 Concrete & Masonry Cleaners 40 A 0 0 0 concrete-and-masonry-cleaners 6473/6568/6574
6685 6568 6473/6568/6685 Lubricants 40 A 0 0 0 lubricants 6473/6568
6785 6749 6473/6568/6749/6785 Stains 40 A 0 0 0 stains 6473/6568/6749
6614 6574 6473/6568/6574/6614 De-icers 50 A 0 0 0 de-icers 6473/6568/6574
6699 6568 6473/6568/6699 Masonry Consumables 50 A 0 0 0 masonry-consumables 6473/6568
6791 6749 6473/6568/6749/6791 Varnishes & Finishes 50 A 0 0 0 varnishes-and-finishes 6473/6568/6749
6618 6574 6473/6568/6574/6618 Deck & Fence Cleaners 60 A 0 0 0 deck-and-fence-cleaners 6473/6568/6574
6749 6568 6473/6568/6749 Painting Consumables 60 A 0 0 10 painting-consumables 6473/6568
6629 6574 6473/6568/6574/6629 Drain Cleaners 70 A 0 0 0 drain-cleaners 6473/6568/6574
6799 6568 6473/6568/6799 Plumbing Primer 70 A 0 0 0 plumbing-primer 6473/6568
6639 6574 6473/6568/6574/6639 Electrical Freeze Sprays 80 A 0 0 0 electrical-freeze-sprays 6473/6568/6574
6805 6568 6473/6568/6805 Protective Coatings & Sealants 80 A 0 0 0 protective-coatings-and-sealants 6473/6568
6642 6574 6473/6568/6574/6642 Lighter Fluid 90 A 0 0 0 lighter-fluid 6473/6568/6574
6813 6568 6473/6568/6813 Solder & Flux 90 A 0 0 0 solder-and-flux 6473/6568
6658 6574 6473/6568/6574/6658 Septic Tank & Cesspool Treatments 100 A 0 0 0 septic-tank-and-cesspool-treatments 6473/6568/6574
6820 6568 6473/6568/6820 Solvents, Strippers & Thinners 100 A 0 0 0 solvents-strippers-and-thinners 6473/6568
6824 6568 6473/6568/6824 Wall Patching Compounds & Plaster 110 A 0 0 1 wall-patching-compounds-and-plaster 6473/6568