#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 'FROM tb_users INNER JOIN tb_ph ON tb_ph.username=tb_users.username WHERE tb_ph.r' at line 1
I get this error above when trying to run the query below
UPDATE tb_users
SET tb_users.tgh = tb_ph.readygh,
tb_users.readygh = tb_ph.readygh * 0.25,
tb_users.profitbalance = tb_ph.readygh - (tb_ph.readygh * 0.25)
FROM tb_users
INNER JOIN tb_ph ON tb_ph.username=tb_users.username
WHERE tb_ph.readygh = tb_ph.paket + (tb_ph.paket*0.6)
and tb_users.username=tb_ph.username
How can it be sorted out?