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 'wzid '_1715245412427' limit 1' at line 1
select * from ***_***_paylist where phome='Paycopy' and userid='' and ddno='Paycopy_' wzid '_1715245412427' limit 1