Fixing order in latest_* query.