limit x,y isn't standard SQL; use limit x offset y

This commit is contained in:
Shish 2012-01-26 16:06:45 +00:00
parent c30cb55504
commit ab9b4e9123

View File

@ -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);