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.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.93"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "parent",
              "p_category_id"
            ],
            "key": "parent",
            "used_key_parts": [
              "parent_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 18,
            "rows_produced_per_join": 0,
            "filtered": "3.85",
            "cost_info": {
              "read_cost": "0.65",
              "eval_cost": "0.07",
              "prefix_cost": "2.45",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "storefront_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "ab__fn_category_status",
              "ab__fn_label_color",
              "ab__fn_label_background",
              "ab__fn_use_origin_image",
              "ab__lc_catalog_image_control"
            ],
            "attached_condition": "(((`kcoffee`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`kcoffee`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`kcoffee`.`cscart_categories`.`usergroup_ids`))) and (`kcoffee`.`cscart_categories`.`status` = 'A') and (`kcoffee`.`cscart_categories`.`category_id` <> 264) and (`kcoffee`.`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": [
              "kcoffee.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.17",
              "eval_cost": "0.07",
              "prefix_cost": "2.69",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category",
              "ab__fn_label_text",
              "ab__fn_label_show"
            ]
          }
        },
        {
          "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": [
              "kcoffee.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.17",
              "eval_cost": "0.07",
              "prefix_cost": "2.93",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

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
303 0 303 Cà Phê Rang Xay 1 A 0 0 ca-phe-rang-xay none N #ffffff #222222 N N
315 0 315 Cà Phê Hoà Tan 2 A 0 0 ca-phe-hoa-tan none N #ffffff #222222 N N
314 0 314 Cà Phê Phin Giấy 3 A 0 0 ca-phe-phin-giay none N #ffffff #222222 N N
319 0 319 Cà Phê Hạt Rang 4 A 0 0 ca-phe-hat-rang none N #ffffff #222222 N N
297 0 297 Trà Cascara 4 A 0 0 tra-cascara none N #ffffff #222222 N N
318 0 318 Gift Sets 5 A 0 0 gift-sets none N #ffffff #222222 N N
302 0 302 Tiêu 6 A 0 0 tieu none N #ffffff #222222 N N
320 0 320 Hàng nguyên liệu 100 A 0 0 hang-nguyen-lieu none N #ffffff #222222 N N
323 0 323 Cà phê Specialty 130 A 0 0 ca-phe-specialty none N #ffffff #222222 N N
324 0 324 Cà Phê Horeca 140 A 0 0 ca-phe-horeca none N #ffffff #222222 N N
331 0 331 Sách 190 A 0 0 sach none N #ffffff #222222 N N
335 0 335 PHÁ CỖ MÙA TRĂNG 200 A 0 0 pha-co-mua-trang none N #ffffff #222222 N N