fixed fetch_users query