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_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.parent_id IN (0) 
  AND cscart_categories.category_id != 264 
  AND cscart_categories.parent_id != 264 
  AND cscart_categories.storefront_id IN (0, 1) 
ORDER BY 
  cscart_category_descriptions.category asc

Query time 0.00110

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.03"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "0.60"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "parent",
              "p_category_id"
            ],
            "key": "parent",
            "used_key_parts": [
              "parent_id",
              "category_id"
            ],
            "key_length": "6",
            "rows_examined_per_scan": 30,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "((`aomnia_com`.`cscart_categories`.`parent_id` = 0) and (`aomnia_com`.`cscart_categories`.`category_id` <> 264))",
            "cost_info": {
              "read_cost": "13.95",
              "eval_cost": "0.06",
              "prefix_cost": "14.01",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "storefront_id",
              "usergroup_ids",
              "status",
              "position"
            ],
            "attached_condition": "(((`aomnia_com`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`aomnia_com`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`aomnia_com`.`cscart_categories`.`usergroup_ids`))) and (`aomnia_com`.`cscart_categories`.`status` = 'A') and (`aomnia_com`.`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": [
              "aomnia_com.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.15",
              "eval_cost": "0.06",
              "prefix_cost": "14.22",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category",
              "mega_m_category_banner_url",
              "mega_m_category_svg_icon"
            ]
          }
        },
        {
          "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": [
              "aomnia_com.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.15",
              "eval_cost": "0.06",
              "prefix_cost": "14.43",
              "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 seo_name seo_path mega_m_category_banner_url mega_m_category_svg_icon
277 0 277 Appliances 190 A 0 0 appliances
245 0 245 Automotive 70 A 0 0 auto-parts-and-accessories
267 0 267 Baby 120 A 0 0 baby-clothing-and-accessories
228 0 228 Bags 50 A 0 0 bags
275 0 275 Beauty & Personal Care 170 A 0 0 beauty-supplies
219 0 219 Books 40 A 0 0 books
196 0 196 Cameras & Photo 60 A 0 0 cameras-and-photo
223 0 223 Clothing & Apparel 30 A 0 0 clothing-and-apparel
968 0 968 Computers & Accessories 360 A 0 0 computers-and-accessories
166 0 166 Electronics 10 A 0 0 electronics
374 0 374 Eyewear 240 A 0 0 eyewear
378 0 378 Fashion & Jewelry 280 A 0 0 fashion-and-jewelry
509 0 509 FOOD & FROZEN GOODS 340 A 0 0 food-and-frozen-goods
270 0 270 Furniture 140 A 0 0 furniture
823 0 823 Hardware & Tools 350 A 0 0 hardware-and-tools
269 0 269 Health & Pharmacy 130 A 0 0 health
278 0 278 Home & Kitchen 200 A 0 0 home-and-kitchen
483 0 483 NOT YET ONBOARDED 320 A 0 0 not-yet-onboarded
375 0 375 Office 250 A 0 0 office
487 0 487 Packaging & Supplies 330 A 0 0 packaging-and-supplies
250 0 250 Pet Supplies 80 A 0 0 pet-supplies
376 0 376 School 260 A 0 0 school
1025 0 1025 SECURITY & SURVEILLANCE 370 A 0 0 security-and-surveillance
309 0 309 Shoes 180 A 0 0 shoes
203 0 203 Sports & Outdoors 20 A 0 0 sports-and-outdoors
319 0 319 Tools 220 A 0 0 tools
377 0 377 Toys & Games 270 A 0 0 toys-and-games
241 0 241 Vehicles 60 A 0 0 vehicles