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