diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 077021357..d1f6e9368 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -322,7 +322,7 @@ SELECT SQL_CALC_FOUND_ROWS if (isset($params['limit'])) { $query .= ' - ORDER BY \'rank\' ASC + ORDER BY `rank` ASC LIMIT '.($params['limit'] + ($params['cat_id'] > 0 ? 1 : 0)); }