select * from estimate_spare where id_est = ''
select * from estimate_spare where id_est = '500001'
update estimate_spare set amount = amount - '1' where id_est = '500001'
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 ':28)' at line 2