From 75246a064cca42aaae0a4bf446bcbdaf6e051a6a Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 8 Jan 2007 06:14:49 +0000 Subject: [PATCH] Feature Issue ID 0000601: Filter all public pages with only recent elements Fix following problem: - if an image appears in several categories (virtual ones) - if you click on that image (the thumbnail) - i have several php warnings/errors and nothing is displayed git-svn-id: http://piwigo.org/svn/trunk@1701 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/section_init.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 29a5be5e8..2911d60cc 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -429,7 +429,7 @@ WHERE { // Main query $query = ' -SELECT image_id +SELECT distinct image_id FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON id = image_id WHERE