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