Index: tagadelic.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tagadelic/Attic/tagadelic.module,v
retrieving revision 1.40.2.1
diff -u -p -r1.40.2.1 tagadelic.module
--- tagadelic.module	8 Mar 2008 13:11:43 -0000	1.40.2.1
+++ tagadelic.module	24 Apr 2008 17:36:23 -0000
@@ -224,7 +224,7 @@ function tagadelic_get_weighted_tags($vi
     if (!is_array($vids) || count($vids) == 0) {
       return array();
     }
-    $result = db_query_range('SELECT COUNT(*) AS count, d.tid, d.name, d.vid FROM {term_data} d INNER JOIN {term_node} n ON d.tid = n.tid WHERE d.vid IN ('. substr(str_repeat('%d,', count($vids)), 0, -1) .') GROUP BY d.tid, d.name, d.vid ORDER BY count DESC', $vids, 0, $size);
+    $result = db_query_range('SELECT COUNT(*) AS count, td.tid, td.name, td.vid FROM {node} n LEFT JOIN {term_node} tn ON n.vid = tn.vid INNER JOIN {term_data} td ON tn.tid = td.tid WHERE td.vid IN ('. substr(str_repeat('%d,', count($vids)), 0, -1) .') GROUP BY td.tid, td.name, td.vid ORDER BY count DESC', $vids, 0, $size);
     
     $tags = tagadelic_build_weighted_tags($result, $steps);
 
