--- image.module.old	Tue Feb 14 14:47:12 2006
+++ image.module.fixed	Tue Feb 14 14:46:52 2006
@@ -396,7 +396,7 @@ function image_page($type = NULL, $tid =
 
   $images = array();
   if ($tid) {
-    $result = pager_query(db_rewrite_sql("SELECT n.nid FROM {term_node} t INNER JOIN {node} n ON t.nid=n.nid WHERE n.status=1 AND n.type='image' AND t.tid=%d ORDER BY n.sticky DESC, n.created DESC"), variable_get('image_images_per_page', 6), 0, NULL, $tid);
+    $result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} n INNER JOIN {term_node} t ON t.nid=n.nid WHERE n.status=1 AND n.type='image' AND t.tid=%d ORDER BY n.sticky DESC, n.created DESC"), variable_get('image_images_per_page', 6), 0, NULL, $tid);
     while ($node = db_fetch_object($result)) {
       $images[] = node_load(array('nid' => $node->nid));
     }
