Index: /branches/2.1/include/functions_notification.inc.php
===================================================================
--- /branches/2.1/include/functions_notification.inc.php	(revision 6669)
+++ /branches/2.1/include/functions_notification.inc.php	(revision 6871)
@@ -497,5 +497,5 @@
     { // get some thumbnails ...
       $query = '
-SELECT id, path, name, tn_ext, file
+SELECT DISTINCT id, path, name, tn_ext, file
   FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=image_id
   '.$where_sql.'
@@ -516,5 +516,5 @@
     {// get some categories ...
       $query = '
-SELECT c.uppercats, COUNT(DISTINCT i.id) AS img_count
+SELECT DISTINCT c.uppercats, COUNT(DISTINCT i.id) AS img_count
   FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON i.id=image_id
     INNER JOIN '.CATEGORIES_TABLE.' c ON c.id=category_id
