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 (323) 
  AND ushop_categories.id_path LIKE '323/%' 
  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.00415

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.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": 41,
            "rows_produced_per_join": 0,
            "filtered": "0.22",
            "cost_info": {
              "read_cost": "10.25",
              "eval_cost": "0.01",
              "prefix_cost": "14.35",
              "data_read_per_join": "299"
            },
            "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 '323/%') 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.02",
              "eval_cost": "0.01",
              "prefix_cost": "14.38",
              "data_read_per_join": "307"
            },
            "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": 3,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.07",
              "eval_cost": "0.03",
              "prefix_cost": "14.48",
              "data_read_per_join": "470"
            },
            "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
712 323 323/712 Artes Marciales y Boxeo 0 A 0 0 artes-marciales-y-boxeo 323 none Y #ffffff #333333 N Y
748 323 323/748 Bádminton 0 A 0 0 badminton 323 none Y #ffffff #333333 N Y
749 323 323/749 Básquetbol 0 A 0 0 basquetbol 323 none Y #ffffff #333333 N Y
694 323 323/694 Béisbol y Sóftbol 0 A 0 0 beisbol-y-softbol 323 none Y #ffffff #333333 N Y
747 323 323/747 Buceo 0 A 0 0 buceo 323 none Y #ffffff #333333 N Y
750 323 323/750 Camping, Caza y Pesca 0 A 0 0 camping-caza-y-pesca 323 none Y #ffffff #333333 N Y
751 323 323/751 Canoas, Kayaks e Inflables 0 A 0 0 canoas-kayaks-e-inflables 323 none Y #ffffff #333333 N Y
752 323 323/752 Championes 0 A 0 0 championes 323 none Y #ffffff #333333 N Y
362 323 323/362 Ciclismo 0 A 0 0 ciclismo 323 none Y #ffffff #333333 N Y
753 323 323/753 Coderas 0 A 0 0 coderas 323 none Y #ffffff #333333 N Y
754 323 323/754 Equitación y Polo 0 A 0 0 equitacion-y-polo 323 none Y #ffffff #333333 N Y
713 323 323/713 Esgrima 0 A 0 0 esgrima 323 none Y #ffffff #333333 N Y
714 323 323/714 Esquí y Snowboard 0 A 0 0 esqui-y-snowboard 323 none Y #ffffff #333333 N Y
715 323 323/715 Fitness y Musculación 0 A 0 0 fitness-y-musculacion 323 none Y #ffffff #333333 N Y
716 323 323/716 Fútbol 0 A 0 0 futbol 323 none Y #ffffff #333333 N Y
717 323 323/717 Fútbol Americano 0 A 0 0 futbol-americano 323 none Y #ffffff #333333 N Y
368 323 323/368 Golf 0 A 0 0 golf 323 none Y #ffffff #333333 N Y
718 323 323/718 Handball 0 A 0 0 handball 323 none Y #ffffff #333333 N Y
719 323 323/719 Hockey 0 A 0 0 hockey 323 none Y #ffffff #333333 N Y
720 323 323/720 Juegos de Salón 0 A 0 0 juegos-de-salon 323 none Y #ffffff #333333 N Y
755 323 323/755 Kitesurf 0 A 0 0 kitesurf 323 none Y #ffffff #333333 N Y
756 323 323/756 Monopatines y Scooters 0 A 0 0 monopatines-y-scooters 323 none Y #ffffff #333333 N Y
721 323 323/721 Montañismo y Trekking 0 A 0 0 montanismo-y-trekking 323 none Y #ffffff #333333 N Y
722 323 323/722 Natación 0 A 0 0 natacion 323 none Y #ffffff #333333 N Y
738 323 323/738 Otros 0 A 0 0 otros 323 none Y #ffffff #333333 N Y
723 323 323/723 Paintball 0 A 0 0 paintball 323 none Y #ffffff #333333 N Y
724 323 323/724 Parapente 0 A 0 0 parapente 323 none Y #ffffff #333333 N Y
725 323 323/725 Patín y Skateboard 0 A 0 0 patin-y-skateboard 323 none Y #ffffff #333333 N Y
726 323 323/726 Pilates y Yoga 0 A 0 0 pilates-y-yoga 323 none Y #ffffff #333333 N Y
727 323 323/727 Pulsómetros y Cronómetros 0 A 0 0 pulsometros-y-cronometros 323 none Y #ffffff #333333 N Y
728 323 323/728 Ropa Deportiva 0 A 0 0 ropa-deportiva 323 none Y #ffffff #333333 N Y
729 323 323/729 Rugby 0 A 0 0 rugby 323 none Y #ffffff #333333 N Y
730 323 323/730 Slackline 0 A 0 0 slackline 323 none Y #ffffff #333333 N Y
731 323 323/731 Suplementos y Shakers 0 A 0 0 suplementos-y-shakers 323 none Y #ffffff #333333 N Y
732 323 323/732 Surf y Bodyboard 0 A 0 0 surf-y-bodyboard 323 none Y #ffffff #333333 N Y
733 323 323/733 Tenis, Pádel y Squash 0 A 0 0 tenis-padel-y-squash 323 none Y #ffffff #333333 N Y
734 323 323/734 Tiro Deportivo 0 A 0 0 tiro-deportivo 323 none Y #ffffff #333333 N Y
735 323 323/735 Voleyball 0 A 0 0 voleyball 323 none Y #ffffff #333333 N Y
736 323 323/736 Wakeboard y Esqui Acuático 0 A 0 0 wakeboard-y-esqui-acuatico 323 none Y #ffffff #333333 N Y
737 323 323/737 Windsurf 0 A 0 0 windsurf 323 none Y #ffffff #333333 N Y