#827. Fixed query.