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