From 11f9680963e06c8c2e85be9efc21ca9981f649c4 Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Thu, 17 May 2018 20:45:35 -0300 Subject: [PATCH] 'row' is a reserved word in MySQL 8.0 --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index f6b72f3e..fa2a642f 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -537,7 +537,7 @@ function create_page_browser($idxfield, $querypart) { $page_size_zerobase = $page_size - 1; $query = " SELECT * FROM ( - SELECT $idxfield AS label, @row := @row + 1 AS row $querypart + SELECT $idxfield AS label, @row := @row + 1 AS 'row' $querypart ) idx WHERE MOD(idx.row, $page_size) IN (0,$page_size_zerobase) OR idx.row = $count_results ";