Changeset 6669 for branches/2.1/include/section_init.inc.php
- Timestamp:
- Jul 6, 2010, 10:11:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/section_init.inc.php
r6665 r6669 290 290 // Main query 291 291 $query = ' 292 SELECT DISTINCT(image_id) '.get_extra_fields($conf['order_by']).'292 SELECT DISTINCT(image_id) 293 293 FROM '.IMAGE_CATEGORY_TABLE.' 294 294 INNER JOIN '.IMAGES_TABLE.' ON id = image_id … … 324 324 { 325 325 $query = ' 326 SELECT DISTINCT image_id '.get_extra_fields($conf['order_by']).'326 SELECT DISTINCT image_id 327 327 FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id 328 328 WHERE image_id IN ('.implode(',', $items).') … … 441 441 442 442 $query = ' 443 SELECT DISTINCT(id) '.get_extra_fields($conf['order_by']).'443 SELECT DISTINCT(id) 444 444 FROM '.IMAGES_TABLE.' 445 445 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id … … 529 529 { 530 530 $query =' 531 SELECT DISTINCT(id) '.get_extra_fields($conf['order_by']).'531 SELECT DISTINCT(id) 532 532 FROM '.IMAGES_TABLE.' 533 533 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
Note: See TracChangeset
for help on using the changeset viewer.