diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 097e7c1ffc39778e58fd18cc274f6048f1d175c2..4ff0697268a4e717a5441d1df0a910d9c9fa9897 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1100,7 +1100,7 @@ function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $p
       $result = pager_query($sql, variable_get('default_nodes_main', 10), 0, $sql_count, $args);
     }
     else {
-      $result = db_query_range($sql, 0, variable_get('feed_default_items', 10), $args);
+      $result = db_query_range($sql, $args, 0, variable_get('feed_default_items', 10));
     }
   }