Cleans up aliases in students query.