As per the title, what would be the PHP Mongo equivalent of something like this in SQL:
SELECT DISTINCT(field) FROM table WHERE someCondition = 1
If you need to add a where clause, use the following syntax:
$ages = $db->command(array( "distinct" => "people", "key" => "age", "query" => array("someField" => "someValue")));