Evolution of stars near bright quasars