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 ') UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7162707071,0x464e5748656b546e4b4e,0x7' at line 6

SELECT gm_counter_page_history_id AS id FROM gm_counter_page_history WHERE gm_counter_page_history_name = '-1315') UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7162707071,0x464e5748656b546e4b4e,0x71627a7871)#' AND gm_counter_page_history_type = 'coid' LIMIT 1

[XT SQL Error]