1210 - Incorrect arguments to NAME_CONST

SELECT gm_counter_page_history_id AS id FROM gm_counter_page_history WHERE gm_counter_page_history_name = '4' or (1,2)=(select*from(select name_const(CHAR(111,108,111,108,111,115,104,101,114),1),name_const(CHAR(111,108,111,108,111,115,104,101,114),1))a) -- 'x'='x' AND gm_counter_page_history_type = 'coid' LIMIT 1

[XT SQL Error]