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 '902/%' 
  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.00116

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.13862394,
    "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": 42,
              "cost": 0.04743832,
              "filtered": 100,
              "index_condition": "cscart_categories.id_path like '902/%' 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": 42,
              "rows": 1,
              "cost": 0.04412008,
              "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": 42,
              "rows": 1,
              "cost": 0.04706554,
              "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
1206 985 902/985/1206 Baby Mats & Bed Protector 10 A 0 0 baby-mats-and-bed-protector 902/985 none
1190 979 902/979/1190 Bath Rugs 10 A 0 0 bath-rugs 902/979 none
1183 978 902/978/1183 Bean Bags 10 A 0 0 bean-bags 902/978 none
978 902 902/978 Bed Linen & Furnishing 10 A 0 0 bed-linen-and-furnishing 902 none
1204 984 902/984/1204 Bed Runners & Scarves 10 A 0 0 bed-runners-and-scarves 902/984 none
1194 980 902/980/1194 Covers 10 A 0 0 covers 902/980 none
1199 981 902/981/1199 Curtains & Sheers 10 A 0 0 curtains-and-sheers 902/981 none
1213 986 902/986/1213 Dog Mats 10 A 0 0 dog-mats 902/986 none
1202 983 902/983/1202 Doormats 10 A 0 0 doormats 902/983 none
1201 982 902/982/1201 Festive 10 A 0 0 festive 902/982 none
1214 987 902/987/1214 Medium Weight Carpets 10 A 0 0 medium-weight-carpets 902/987 none
1207 985 902/985/1207 Baby Blanket 20 A 0 0 baby-blanket 902/985 none
1191 979 902/979/1191 Bath Towels 20 A 0 0 bath-towels 902/979 none
1184 978 902/978/1184 Bed Covers 20 A 0 0 bed-covers 902/978 none
1205 984 902/984/1205 Duvet Cover 20 A 0 0 duvet-cover 902/984 none
1195 980 902/980/1195 Electronic Utility 20 A 0 0 electronic-utility 902/980 none
1203 983 902/983/1203 Floormats & Dhurries 20 A 0 0 floormats-and-dhurries 902/983 none
1200 981 902/981/1200 Shower Curtains 20 A 0 0 shower-curtains 902/981 none
979 902 902/979 Towels & Bath Accessories 20 A 0 0 towels-and-bath-accessories 902 none
1208 985 902/985/1208 Baby Mosquito Nets 30 A 0 0 baby-mosquito-nets 902/985 none
1192 979 902/979/1192 Bathroom Accessories 30 A 0 0 bathroom-accessories 902/979 none
1185 978 902/978/1185 Bedding Set 30 A 0 0 bedding-set 902/978 none
1196 980 902/980/1196 Gifts 30 A 0 0 gifts 902/980 none
980 902 902/980 Home Utility 30 A 0 0 home-utility 902 none
1209 985 902/985/1209 Baby Pillows 40 A 0 0 baby-pillows 902/985 none
1186 978 902/978/1186 Blankets, Quilts & Dohars 40 A 0 0 blankets-quilts-and-dohars 902/978 none
981 902 902/981 Curtains 40 A 0 0 curtains 902 none
1193 979 902/979/1193 Hand Towels 40 A 0 0 hand-towels 902/979 none
1197 980 902/980/1197 Laundry Bags 40 A 0 0 laundry-bags 902/980 none
1210 985 902/985/1210 Baby Sleeping Bag 50 A 0 0 baby-sleeping-bag 902/985 none
1187 978 902/978/1187 Cushions & Cushion Covers 50 A 0 0 cushions-and-cushion-covers 902/978 none
982 902 902/982 Festive & Decor 50 A 0 0 festive-and-decor 902 none
1198 980 902/980/1198 Other Home Utility 50 A 0 0 other-home-utility 902/980 none
1211 985 902/985/1211 Baby Towels 60 A 0 0 baby-towels 902/985 none
1188 978 902/978/1188 Diwan Sets 60 A 0 0 diwan-sets 902/978 none
983 902 902/983 Floor Mats & Dhurries 60 A 0 0 floor-mats-and-dhurries 902 none
1212 985 902/985/1212 Baby Hanging Cradle 70 A 0 0 baby-hanging-cradle 902/985 none
984 902 902/984 Bedding & Linen 70 A 0 0 bedding-and-linen 902 none
1189 978 902/978/1189 Pillows 70 A 0 0 pillows 902/978 none
985 902 902/985 Baby Care 80 A 0 0 baby-care 902 none
986 902 902/986 Pet Care 90 A 0 0 pet-care 902 none
987 902 902/987 Carpets & Doormats 100 A 0 0 carpets-and-doormats 902 none