? dbrq.patch
Index: g2.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/g2/g2.module,v
retrieving revision 1.19.2.8
diff -u -p -r1.19.2.8 g2.module
--- g2.module	24 Jan 2010 15:17:08 -0000	1.19.2.8
+++ g2.module	28 Jan 2010 07:33:26 -0000
@@ -819,7 +819,7 @@ function _g2_referer_wipe($nid = NULL) {
  *   - g2 entries starting by chosen initial segment
  */
 function _g2_stats($tid = 0, $initial = NULL) {
-  $sq = 'SELECT n.status, COUNT(distinct n.nid) cnt '
+  $sq = 'SELECT COUNT(distinct n.nid) cnt, n.status, '
       . 'FROM {node} n ';
   $sq_params = array();
 
