From 40ca83d382ca009d0604276d7dcaa78bdb5f1a9a Mon Sep 17 00:00:00 2001 From: Linty Date: Tue, 3 Sep 2024 16:19:06 +0200 Subject: [PATCH] fixes #2221 use backticks instead of quotes ...because that's what backticks are for. --- include/ws_functions/pwg.categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }