Index: l10n_community/pages.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/pages.inc,v
retrieving revision 1.1.2.20.2.24.2.1
diff -u -r1.1.2.20.2.24.2.1 pages.inc
--- l10n_community/pages.inc	19 Feb 2010 08:23:05 -0000	1.1.2.20.2.24.2.1
+++ l10n_community/pages.inc	20 Feb 2010 10:05:41 -0000
@@ -509,10 +509,10 @@
           $sums[$row->pid]['translations'] = $row->translation_count;
         }
         // Get the count of distinct strings having suggestions per project.
-        $count_sql = "SELECT COUNT(DISTINCT t.sid) AS translation_count, l.pid FROM {l10n_community_line} l LEFT JOIN {l10n_community_status_flag} ts ON l.sid = ts.sid WHERE ts.has_suggestion = 1 ";
+        $count_sql = "SELECT COUNT(DISTINCT ts.sid) AS translation_count, l.pid FROM {l10n_community_line} l LEFT JOIN {l10n_community_status_flag} ts ON l.sid = ts.sid WHERE ts.has_suggestion = 1 ";
         if (isset($id)) {
           // Limit to language if desired.
-          $count_sql .= "AND t.language = '%s' ";
+          $count_sql .= "AND ts.language = '%s' ";
           $count_args[] = $id;
         }
         $count_sql .= 'GROUP BY l.pid';
