Ver originalSELECT CASE WHEN MAX(id) IS NULL THEN '1' ELSE MAX(id) END AS id FROM tabla WHERE id_noticia = '1'