aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 16928e9ab..b0d5da945 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -597,7 +597,7 @@ SELECT image_id
FROM '.IMAGE_CATEGORY_TABLE.'
WHERE category_id = '.$category_id.'
ORDER BY '.DB_RANDOM_FUNCTION.'()
- LIMIT 0 OFFSET 1
+ LIMIT 1
;';
list($representative) = pwg_db_fetch_row(pwg_query($query));