--- database.mysql.inc 2009-10-21 23:37:31.000000000 +0200 +++ database.mysql.inc.new 2009-10-21 23:35:21.000000000 +0200 @@ -365,8 +365,8 @@ function db_distinct_field($table, $fiel $matches = array(); if (preg_match('/^SELECT(.*?)FROM(.*)/is', $query, $matches)) { $select = preg_replace( - '/((?:^|,)\s*)(?