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_categories.product_count, 
  ushop_seo_names.name as seo_name, 
  ushop_seo_names.path as seo_path, 
  ushop_categories.ab__lc_catalog_image_control, 
  ushop_companies.company 
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' 
  LEFT JOIN ushop_companies ON ushop_companies.company_id = ushop_categories.company_id 
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.category_id IN (323, 368) 
  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.00139

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.51"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "ushop_categories",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "parent",
              "p_category_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 0,
            "filtered": "2.50",
            "index_condition": "((`marketplace`.`ushop_categories`.`category_id` in (323,368)) and (`marketplace`.`ushop_categories`.`category_id` <> 264))",
            "cost_info": {
              "read_cost": "1.40",
              "eval_cost": "0.01",
              "prefix_cost": "1.41",
              "data_read_per_join": "165"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "storefront_id",
              "usergroup_ids",
              "status",
              "product_count",
              "position",
              "is_trash",
              "category_type",
              "ab__lc_catalog_image_control"
            ],
            "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`.`parent_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": "1.43",
              "data_read_per_join": "170"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "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.04",
              "eval_cost": "0.02",
              "prefix_cost": "1.48",
              "data_read_per_join": "260"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "ushop_companies",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "company_id"
            ],
            "key_length": "4",
            "ref": [
              "marketplace.ushop_categories.company_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.01",
              "eval_cost": "0.02",
              "prefix_cost": "1.51",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "company_id",
              "company"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id product_count seo_name seo_path ab__lc_catalog_image_control company
368 323 323/368 Golf 0 A 0 0 8 golf 323 none
323 0 323 Deportes y Fitness 160 A 0 0 0 deportes-y-fitness left