--- biblio.pages.inc.orig	2008-11-10 16:48:30.000000000 +0100
+++ biblio.pages.inc	2008-11-10 16:48:36.000000000 +0100
@@ -318,7 +318,7 @@
   $where_clause = count($where) > 1 ? '('. implode(') AND (', $where) .')': $where[0];
 
   $query = db_rewrite_sql("SELECT DISTINCT n.*, b.*, bt.name as biblio_type_name FROM {node} n $joins  WHERE $where_clause $published $limit $sortby ");
-  $count_query = db_rewrite_sql("SELECT DISTINCT COUNT(*) FROM {node} n $joins  WHERE $where_clause $published $limit ");
+  $count_query = db_rewrite_sql("SELECT COUNT(DISTINCT(n.nid)) FROM {node} n $joins  WHERE $where_clause $published $limit ");
   print $count_query."<br><br>";
   $_SESSION['last_biblio_query'] = $query;
   $terms[] = $sort_attrib['order']; // this is either asc or desc to be inserted into the first term of the ORDER clause
