Changeset 6653 for branches/2.1/include/functions_tag.inc.php
- Timestamp:
- Jul 3, 2010, 2:16:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/functions_tag.inc.php
r6364 r6653 37 37 // we can find top fatter tags among reachable images 38 38 $query = ' 39 SELECT tag_id, COUNT(DISTINCT(it.image_id)) counter39 SELECT tag_id, COUNT(DISTINCT(it.image_id)) AS counter 40 40 FROM '.IMAGE_CATEGORY_TABLE.' ic 41 41 INNER JOIN '.IMAGE_TAG_TABLE.' it ON ic.image_id=it.image_id'.get_sql_condition_FandF … … 224 224 } 225 225 $query = ' 226 SELECT t.*, count(*) counter226 SELECT t.*, count(*) AS counter 227 227 FROM '.IMAGE_TAG_TABLE.' 228 228 INNER JOIN '.TAGS_TABLE.' t ON tag_id = id
Note: See TracChangeset
for help on using the changeset viewer.