From ab9b4e9123017c57d5f9c86c74ecab5f2261c62d Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Jan 2012 16:06:45 +0000 Subject: [PATCH] limit x,y isn't standard SQL; use limit x offset y --- contrib/numeric_score/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/numeric_score/main.php b/contrib/numeric_score/main.php index 4be5a937..03c8c4df 100644 --- a/contrib/numeric_score/main.php +++ b/contrib/numeric_score/main.php @@ -162,7 +162,7 @@ class NumericScore implements Extension { } $sql .= "ORDER BY numeric_score DESC - LIMIT 0 , ".$t_images; + LIMIT 0 OFFSET ".$t_images; //filter images by year/score != 0 > limit to max images on one page > order from highest to lowest score $result = $database->get_all($sql);