--- /tmp/class.tx_ttnews.php	2007-08-14 08:57:05.889745894 +0000
+++ typo3conf/ext/tt_news/pi/class.tx_ttnews.php	2007-08-14 08:58:15.928553234 +0000
@@ -419,7 +419,7 @@
 				$periodInfo['HRstop'] = date('d-m-Y', $periodInfo['stop']);
 				$periodInfo['quarter'] = floor(date('m', $dateArr[$k]) / 3) + 1;
 				// execute a query to count the archive periods
-				$selectConf['selectFields'] = 'count(distinct(uid))';
+				$selectConf['selectFields'] = 'COUNT(DISTINCT uid )';
 				$selectConf['where'] = $selectConf2['where'] . ' AND datetime>=' . $periodInfo['start'] . ' AND datetime<' . $periodInfo['stop'];
 
 				$res = $this->exec_getQuery('tt_news', $selectConf);
@@ -631,6 +631,7 @@
 									),
 								$this->conf['versionPreviewMessage_stdWrap.']
 							);
+
 							$this->tt_news_uid = intval($vPrev[key($vPrev)]);
 							$this->piVars['tt_news'] = $this->tt_news_uid;
 							$this->piVars['ADMCMD_vPrev'] = rawurlencode(serialize(array($table.':'.$t3ver_oid => $this->tt_news_uid)));
@@ -780,7 +781,7 @@
 			// build parameter Array for List query
 			$selectConf = $this->getSelectConf($where, $noPeriod);
 			// performing query to count all news (we need to know it for browsing):
-			$selectConf['selectFields'] = 'COUNT(DISTINCT(tt_news.uid))'; //count(*)
+			$selectConf['selectFields'] = 'COUNT(DISTINCT tt_news.uid)'; //count(*)
 			$res = $this->exec_getQuery('tt_news', $selectConf);
 
 			if ($res) $row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);
@@ -796,9 +797,9 @@
 				// build query for display:
 				$selectConf['selectFields'] = 'tt_news.*';
 				if ($this->config['groupBy']) {
-					$selectConf['groupBy'] = $this->config['groupBy'];
+# temp					$selectConf['groupBy'] = $this->config['groupBy'];
 				} else {
-					$selectConf['groupBy'] = 'tt_news.uid';
+# temp					$selectConf['groupBy'] = 'tt_news.uid';
 				}
 
 				if ($this->config['orderBy']) {
