Hay un error: ERROR: column "muere" does not exist LINE 25: WHERE n.idnota =muere ^