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_categories.ab__fn_category_status, 
  cscart_categories.ab__fn_label_color, 
  cscart_categories.ab__fn_label_background, 
  cscart_categories.ab__fn_use_origin_image, 
  cscart_category_descriptions.ab__fn_label_text, 
  cscart_category_descriptions.ab__fn_label_show 
FROM 
  cscart_categories 
  LEFT JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id 
  AND cscart_category_descriptions.lang_code = 'vn' 
  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 = 'vn' 
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_categories.is_trash asc, 
  cscart_categories.position asc, 
  cscart_category_descriptions.category asc

Query time 0.00085

JSON explain

{
  "query_block": {
    "select_id": 1,
    "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": "ref",
              "possible_keys": ["PRIMARY", "c_status", "parent", "p_category_id"],
              "key": "parent",
              "key_length": "3",
              "used_key_parts": ["parent_id"],
              "ref": ["const"],
              "rows": 14,
              "filtered": 100,
              "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.category_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": ["demov2026.cscart_categories.category_id", "const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'vn')"
            }
          },
          {
            "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": [
                "demov2026.cscart_categories.category_id",
                "const",
                "const",
                "const"
              ],
              "rows": 3,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'vn')"
            }
          }
        ]
      }
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id seo_name seo_path ab__lc_catalog_image_control ab__fn_category_status ab__fn_label_color ab__fn_label_background ab__fn_use_origin_image ab__fn_label_text ab__fn_label_show
166 0 166 Electronics 10 A 0 0 electronics-vn none Y #ffffff #333333 N Y
167 0 167 Computers 15 A 0 0 computers-vn none Y #ffffff #333333 N Y
203 0 203 Sports & Outdoors 20 A 0 0 sports-and-outdoors-vn none Y #ffffff #333333 N Y
223 0 223 Apparel 30 A 0 0 apparel-vn none Y #ffffff #333333 N Y
219 0 219 Books 40 A 0 0 books-vn none Y #ffffff #333333 N Y
228 0 228 Music 50 A 0 0 music-vn none Y #ffffff #333333 N Y
241 0 241 Movies & TV 60 A 0 0 movies-and-tv-vn none Y #ffffff #333333 N Y
245 0 245 Video Games 70 A 0 0 video-games-vn none Y #ffffff #333333 N Y
250 0 250 Office Supplies 80 A 0 0 office-supplies-vn none Y #ffffff #333333 N Y
293 0 293 AB: Phones 100 A 1 1 ab-phones-vn none Y #ffffff #333333 N Y
294 0 294 AB: Laptops 110 A 1 1 ab-laptops-vn none Y #ffffff #333333 N Y
265 0 265 AB: Sports and outdoors 10000 A 0 0 ab-sports-and-outdoors-vn left Y #ffffff #333333 N Y
296 0 296 Cà Phê Hoà Tan 10020 A 0 0 ca-phe-hoa-tan none N #ffffff #222222 N N
297 0 297 Trà Cascara 10030 A 0 0 tra-cascara none N #ffffff #222222 N N
298 0 298 Cà Phê Phin Giấy 10040 A 0 0 ca-phe-phin-giy none N #ffffff #222222 N N
299 0 299 Cà Phê Hạt 10050 A 0 0 ca-phe-ht none N #ffffff #222222 N N
300 0 300 Túi Xách Canvas 10060 A 0 0 tui-xach-canvas none N #ffffff #222222 N N
301 0 301 Sách Hay 10070 A 0 0 sach-hay none N #ffffff #222222 N N
302 0 302 Tiêu Hạt 10080 A 0 0 tieu-ht none N #ffffff #222222 N N
303 0 303 Cà phê rang xay 10090 A 0 0 ca-phe-rang-xay-vn none N #ffffff #222222 N N
304 0 304 Cà phê đặc sản 10100 A 0 0 ca-phe-c-sn none N #ffffff #222222 N N
305 0 305 HORECA 10110 A 0 0 horeca none N #ffffff #222222 N N
306 0 306 Sẩn Phẩm Cà Phê 10120 A 0 0 sn-phm-ca-phe none N #ffffff #222222 N N