[fix bug 824892] Fix duplicate results in /people/ API queries