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, 
  cscart_categories.ab__lc_catalog_image_control, 
  cscart_category_descriptions.mega_m_category_banner_url, 
  cscart_category_descriptions.mega_m_category_svg_icon 
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 '215/%' 
  AND cscart_categories.category_id != 264 
  AND cscart_categories.parent_id != 264 
  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.00123

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.14718129,
    "filesort": {
      "sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "parent",
                "id_path",
                "p_category_id"
              ],
              "key": "id_path",
              "key_length": "767",
              "used_key_parts": ["id_path"],
              "loops": 1,
              "rows": 45,
              "cost": 0.05041864,
              "filtered": 100,
              "index_condition": "cscart_categories.id_path like '215/%' and cscart_categories.category_id <> 264",
              "attached_condition": "(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` = 'A' and cscart_categories.parent_id <> 264 and cscart_categories.storefront_id in (0,1)"
            }
          },
          {
            "table": {
              "table_name": "cscart_category_descriptions",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["category_id", "lang_code"],
              "ref": ["u508912950_dev_2025.cscart_categories.category_id", "const"],
              "loops": 45,
              "rows": 1,
              "cost": 0.0468034,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
            }
          },
          {
            "table": {
              "table_name": "cscart_seo_names",
              "access_type": "ref",
              "possible_keys": ["PRIMARY", "dispatch"],
              "key": "PRIMARY",
              "key_length": "206",
              "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
              "ref": [
                "u508912950_dev_2025.cscart_categories.category_id",
                "const",
                "const",
                "const"
              ],
              "loops": 45,
              "rows": 1,
              "cost": 0.04995925,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
            }
          }
        ]
      }
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id seo_name seo_path ab__lc_catalog_image_control mega_m_category_banner_url mega_m_category_svg_icon
507 339 215/339/507 Bra 10 A 0 0 bra 215/339 none
658 215 215/658 Clothing 10 A 0 0 clothing 215 none
659 658 215/658/659 Dresses 10 A 0 0 dresses-en 215/658 none
502 337 215/337/502 Sandals 10 A 0 0 sandals 215/337 none
1676 1614 215/1614/1676 Sunglasses 10 A 0 0 sunglasses 215/1614 none
1684 1683 215/1683/1684 Swimwear 10 A 0 0 swimwear 215/1683 none
1669 1613 215/1613/1669 Tote Bags 10 A 0 0 tote-bags 215/1613 none
508 339 215/339/508 Briefs 20 A 0 0 briefs 215/339 none
1670 1613 215/1613/1670 Crossbags & Bumbags 20 A 0 0 crossbags-and-bumbags 215/1613 none
1677 1614 215/1614/1677 Earrings 20 A 0 0 earrings 215/1614 none
1685 1683 215/1683/1685 Flip Flops 20 A 0 0 flip-flops 215/1683 none
503 337 215/337/503 Sneakers 20 A 0 0 sneakers 215/337 none
660 658 215/658/660 Tshirts 20 A 0 0 tshirts 215/658 none
1678 1614 215/1614/1678 Belts 30 A 0 0 belts 215/1614 none
661 658 215/658/661 Bodysuit 30 A 0 0 bodysuit 215/658 none
339 215 215/339 Innerwear & Sleepwear 30 A 0 0 innerwear-and-sleepwear 215 none
509 339 215/339/509 Sleepwear & Loungewear 30 A 0 0 sleepwear-and-loungewear 215/339 none
1686 1683 215/1683/1686 Sliders 30 A 0 0 sliders 215/1683 none
1671 1613 215/1613/1671 Wallets 30 A 0 0 wallets 215/1613 none
504 337 215/337/504 Wedges 30 A 0 0 wedges 215/337 none
662 658 215/658/662 Activewear 40 A 0 0 activewear 215/658 none
1672 1613 215/1613/1672 Backpacks & Laptop Bags 40 A 0 0 backpacks-and-laptop-bags 215/1613 none
505 337 215/337/505 Espadrilles 40 A 0 0 espadrilles 215/337 none
1679 1614 215/1614/1679 Scarves & Beanies 40 A 0 0 scarves-and-beanies 215/1614 none
337 215 215/337 Shoes 40 A 0 0 shoes 215 none
510 339 215/339/510 Thermals 40 A 0 0 thermals 215/339 none
1613 215 215/1613 Bags & Wallets 50 A 0 0 bags-and-wallets 215 none
1673 1613 215/1613/1673 Beachbag 50 A 0 0 beachbag 215/1613 none
506 337 215/337/506 Boots 50 A 0 0 boots 215/337 none
1680 1614 215/1614/1680 Hats 50 A 0 0 hats 215/1614 none
1660 658 215/658/1660 Tracksuits 50 A 0 0 tracksuits 215/658 none
1614 215 215/1614 Accessories 60 A 0 0 accessories 215 none
1661 658 215/658/1661 Biker Shorts 60 A 0 0 biker-shorts 215/658 none
1681 1614 215/1614/1681 Gift 60 A 0 0 gift 215/1614 none
1674 1613 215/1613/1674 Suitcases 60 A 0 0 suitcases 215/1613 none
1662 658 215/658/1662 Shirts 70 A 0 0 shirts 215/658 none
1683 215 215/1683 Summer 70 A 0 0 summer 215 none
1682 1614 215/1614/1682 Underwear 70 A 0 0 underwear 215/1614 none
1675 1613 215/1613/1675 Wash and Cosmetic Bags 70 A 0 0 wash-and-cosmetic-bags 215/1613 none
1663 658 215/658/1663 Long Sleeve Tops 80 A 0 0 long-sleeve-tops 215/658 none
1664 658 215/658/1664 Sweaters 90 A 0 0 sweaters 215/658 none
1665 658 215/658/1665 Jackets & Gilets 100 A 0 0 jackets-and-gilets 215/658 none
1666 658 215/658/1666 Trousers 110 A 0 0 trousers 215/658 none
1667 658 215/658/1667 Leggings 120 A 0 0 leggings 215/658 none
1668 658 215/658/1668 Hoodies 130 A 0 0 hoodies 215/658 none