Really? Your going to throw off some random code from your script and tell me that everything is accurate?
How about you perform this:
select id from DATABASENAME.players where hash = "WJaUhWLomV2DV2EGGLlnNStCJ7vsntS4";
and then
SELECT address FROM DATABASENAME.deposits where player_id = IDRETURNEDFROMFIRSTQUERY;
Tell me what address it returns, also format the strings to work with your database structure if you know how to do that.
The 'random code' isn't random because its relevant. Dear lord.