SELECT 
  ushop_categories.category_id, 
  ushop_categories.parent_id, 
  ushop_categories.id_path, 
  ushop_category_descriptions.category, 
  ushop_categories.position, 
  ushop_categories.status, 
  ushop_categories.company_id, 
  ushop_categories.storefront_id, 
  ushop_seo_names.name as seo_name, 
  ushop_seo_names.path as seo_path, 
  ushop_categories.ab__lc_catalog_image_control, 
  ushop_categories.ab__fn_category_status, 
  ushop_categories.ab__fn_label_color, 
  ushop_categories.ab__fn_label_background, 
  ushop_categories.ab__fn_use_origin_image, 
  ushop_category_descriptions.ab__fn_label_text, 
  ushop_category_descriptions.ab__fn_label_show 
FROM 
  ushop_categories 
  LEFT JOIN ushop_category_descriptions ON ushop_categories.category_id = ushop_category_descriptions.category_id 
  AND ushop_category_descriptions.lang_code = 'es' 
  LEFT JOIN ushop_seo_names ON ushop_seo_names.object_id = ushop_categories.category_id 
  AND ushop_seo_names.type = 'c' 
  AND ushop_seo_names.dispatch = '' 
  AND ushop_seo_names.lang_code = 'es' 
WHERE 
  1 = 1 
  AND (
    ushop_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, ushop_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, ushop_categories.usergroup_ids
    )
  ) 
  AND ushop_categories.status IN ('A') 
  AND ushop_categories.parent_id IN (338) 
  AND ushop_categories.id_path LIKE '338/%' 
  AND ushop_categories.category_id != 264 
  AND ushop_categories.parent_id != 264 
  AND ushop_categories.storefront_id IN (0, 1) 
  AND ushop_categories.category_type <> 'W' 
ORDER BY 
  ushop_categories.is_trash asc, 
  ushop_categories.position asc, 
  ushop_category_descriptions.category asc

Query time 0.00094

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.48"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "ushop_categories",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "parent",
              "id_path",
              "p_category_id"
            ],
            "key": "parent",
            "used_key_parts": [
              "parent_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 7,
            "rows_produced_per_join": 0,
            "filtered": "0.71",
            "cost_info": {
              "read_cost": "1.75",
              "eval_cost": "0.01",
              "prefix_cost": "2.45",
              "data_read_per_join": "166"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "storefront_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "category_type",
              "ab__lc_catalog_image_control",
              "ab__fn_category_status",
              "ab__fn_label_color",
              "ab__fn_label_background",
              "ab__fn_use_origin_image"
            ],
            "attached_condition": "(((`marketplace`.`ushop_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`marketplace`.`ushop_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`marketplace`.`ushop_categories`.`usergroup_ids`))) and (`marketplace`.`ushop_categories`.`status` = 'A') and (`marketplace`.`ushop_categories`.`id_path` like '338/%') and (`marketplace`.`ushop_categories`.`category_id` <> 264) and (`marketplace`.`ushop_categories`.`storefront_id` in (0,1)) and (`marketplace`.`ushop_categories`.`category_type` <> 'W'))"
          }
        },
        {
          "table": {
            "table_name": "ushop_category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "marketplace.ushop_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.01",
              "eval_cost": "0.01",
              "prefix_cost": "2.47",
              "data_read_per_join": "170"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category",
              "ab__fn_label_text",
              "ab__fn_label_show"
            ]
          }
        },
        {
          "table": {
            "table_name": "ushop_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "marketplace.ushop_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.01",
              "eval_cost": "0.01",
              "prefix_cost": "2.49",
              "data_read_per_join": "86"
            },
            "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
376 338 338/376 Accesorios para Herramientas 0 A 0 0 accesorios-para-herramientas 338 none Y #ffffff #333333 N Y
377 338 338/377 Cajas y Organizadores 0 A 0 0 cajas-y-organizadores 338 none Y #ffffff #333333 N Y
378 338 338/378 Herramientas Eléctricas 0 A 0 0 herramientas-electricas 338 none Y #ffffff #333333 N Y
379 338 338/379 Herramientas Industriales 0 A 0 0 herramientas-industriales 338 none Y #ffffff #333333 N Y
380 338 338/380 Herramientas Manuales 0 A 0 0 herramientas-manuales 338 none Y #ffffff #333333 N Y
381 338 338/381 Herramientas Neumáticas 0 A 0 0 herramientas-neumaticas 338 none Y #ffffff #333333 N Y
382 338 338/382 Herramientas para Jardín 0 A 0 0 herramientas-para-jardin 338 none Y #ffffff #333333 N Y
384 338 338/384 Otros 0 A 0 0 otros 338 none Y #ffffff #333333 N Y
383 338 338/383 Testers y Equipos de Medición 0 A 0 0 testers-y-equipos-de-medicion 338 none Y #ffffff #333333 N Y