diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 70e226e5b..077021357 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)); }