[mysql] Using DISTINCT and COUNT together in a MySQL Query