öhm.. stimmt.... 
wenn du immer nur eins haben willst, lasse das count weg.
das count(*) brauchst du deshalb nciht, da alle namen NUR EINMAL mit distict auftreten.

wenn du immer nur eins haben willst, lasse das count weg.
PHP-Code:
$result = mysql_query("SELECT DISTINCT(name) FROM ".$table");
Kommentar