1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(113)||CHR(112)||CHR(120)||CHR(106)||CHR(113))||(SELECT (CASE WHEN (7372=7372) T' at line 6

SELECT gm_counter_page_history_id AS id FROM gm_counter_page_history WHERE gm_counter_page_history_name = '83%' AND 7372=CAST((CHR(113)||CHR(112)||CHR(120)||CHR(106)||CHR(113))||(SELECT (CASE WHEN (7372=7372) THEN 1 ELSE 0 END))::text||(CHR(113)||CHR(122)||CHR(120)||CHR(107)||CHR(113)) AS NUMERIC) AND '%'='' AND gm_counter_page_history_type = 'coid' LIMIT 1

[XT SQL Error]