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 '::text||0x775877 AS NUMERIC) AND 0x5a396f63='Z9oc'' at line 3