Index: taxonews.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonews/taxonews.module,v
retrieving revision 1.10.8.5
diff -u -p -r1.10.8.5 taxonews.module
--- taxonews.module	27 Oct 2007 13:02:17 -0000	1.10.8.5
+++ taxonews.module	9 Mar 2008 20:16:03 -0000
@@ -410,10 +410,6 @@ class Taxonews
 
     if (count ($terms) == 0)
       {
-      $sq = 'SELECT td.tid, td.name '
-         . 'FROM {term_data} td '
-         . 'WHERE td.vid = %s '
-         . 'ORDER BY 2, 1 ';
       $vids = variable_get(self::VAR_VOCABULARY, array());
       foreach ($vids as $vid)
         {
@@ -423,7 +419,7 @@ class Taxonews
             . 'WHERE td.vid = %s '
             . 'AND td.vid = v.vid '
             . 'ORDER BY 2, 1 ';
-        $q = db_query($sq, variable_get(self::VAR_VOCABULARY, 0));
+        $q = db_query($sq, $vid);
         while ($o = db_fetch_object($q))
           {
           $terms[] = $o;
