aboutsummaryrefslogtreecommitdiffstats
path: root/random.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--random.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.php b/random.php
index f1adfada5..47d3506a4 100644
--- a/random.php
+++ b/random.php
@@ -38,7 +38,7 @@ check_status(ACCESS_GUEST);
// +-----------------------------------------------------------------------+
$query = '
-SELECT DISTINCT(id)
+SELECT id
FROM '.IMAGES_TABLE.'
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
'.get_sql_condition_FandF