Finds all unique values in given field.
This function returns array or null if database is empty.
$authors = ptb_listUnique($myDatabase, 'author');
If you need to use this function, it's a sign you should think about changing structure of your database :-)