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