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 '5563/5572/%' 
  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.00184

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.76"
    },
    "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": 24,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5563/5572/%')",
            "cost_info": {
              "read_cost": "34.51",
              "eval_cost": "0.10",
              "prefix_cost": "34.61",
              "data_read_per_join": "2K"
            },
            "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.48",
              "eval_cost": "0.10",
              "prefix_cost": "35.19",
              "data_read_per_join": "1K"
            },
            "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.48",
              "eval_cost": "0.10",
              "prefix_cost": "35.76",
              "data_read_per_join": "833"
            },
            "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
5745 5716 5563/5572/5716/5745 3D Modeling Software 10 A 0 0 0 3d-modeling-software 5563/5572/5716
5582 5572 5563/5572/5582 Antivirus & Security Software 10 A 0 0 20 antivirus-and-security-software 5563/5572
5762 5716 5563/5572/5716/5762 Animation Editing Software 20 A 0 0 0 animation-editing-software 5563/5572/5716
5604 5572 5563/5572/5604 Business & Productivity Software 20 A 0 0 0 business-and-productivity-software 5563/5572
5617 5572 5563/5572/5617 Compilers & Programming Tools 30 A 0 0 0 compilers-and-programming-tools 5563/5572
5782 5716 5563/5572/5716/5782 Graphic Design & Illustration Software 30 A 0 0 0 graphic-design-and-illustration-software 5563/5572/5716
5631 5572 5563/5572/5631 Computer Utilities & Maintenance Software 40 A 0 0 0 computer-utilities-and-maintenance-software 5563/5572
5802 5716 5563/5572/5716/5802 Home & Interior Design Software 40 A 0 0 2 home-and-interior-design-software 5563/5572/5716
5644 5572 5563/5572/5644 Dictionary & Translation Software 50 A 0 0 0 dictionary-and-translation-software 5563/5572
5829 5716 5563/5572/5716/5829 Home Publishing Software 50 A 0 0 0 home-publishing-software 5563/5572/5716
5664 5572 5563/5572/5664 Educational Software 60 A 0 0 0 educational-software 5563/5572
5852 5716 5563/5572/5716/5852 Media Viewing Software 60 A 0 0 0 media-viewing-software 5563/5572/5716
5674 5572 5563/5572/5674 Financial, Tax & Accounting Software 70 A 0 0 0 financial-tax-and-accounting-software 5563/5572
5874 5716 5563/5572/5716/5874 Music Composition Software 70 A 0 0 0 music-composition-software 5563/5572/5716
5689 5572 5563/5572/5689 GPS Map Data & Software 80 A 0 0 0 gps-map-data-and-software 5563/5572
5890 5716 5563/5572/5716/5890 Sound Editing Software 80 A 0 0 0 sound-editing-software 5563/5572/5716
5702 5572 5563/5572/5702 Handheld & PDA Software 90 A 0 0 0 handheld-and-pda-software 5563/5572
5911 5716 5563/5572/5716/5911 Video Editing Software 90 A 0 0 0 video-editing-software 5563/5572/5716
5716 5572 5563/5572/5716 Multimedia & Design Software 100 A 0 0 0 multimedia-and-design-software 5563/5572
5929 5716 5563/5572/5716/5929 Web Design Software 100 A 0 0 0 web-design-software 5563/5572/5716
5945 5572 5563/5572/5945 Network Software 110 A 0 0 0 network-software 5563/5572
5979 5572 5563/5572/5979 Office Application Software 120 A 0 0 6 office-application-software 5563/5572
5997 5572 5563/5572/5997 Operating Systems 130 A 0 0 8 operating-systems 5563/5572
9029 5572 5563/5572/9029 Restore Disks 140 A 0 0 0 restore-disks-en 5563/5572