Changeset 6871 for branches/2.1/include
- Timestamp:
- Sep 9, 2010, 3:21:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/functions_notification.inc.php
r6669 r6871 497 497 { // get some thumbnails ... 498 498 $query = ' 499 SELECT id, path, name, tn_ext, file499 SELECT DISTINCT id, path, name, tn_ext, file 500 500 FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=image_id 501 501 '.$where_sql.' … … 516 516 {// get some categories ... 517 517 $query = ' 518 SELECT c.uppercats, COUNT(DISTINCT i.id) AS img_count518 SELECT DISTINCT c.uppercats, COUNT(DISTINCT i.id) AS img_count 519 519 FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON i.id=image_id 520 520 INNER JOIN '.CATEGORIES_TABLE.' c ON c.id=category_id
Note: See TracChangeset
for help on using the changeset viewer.