fix friendlist retrieve query