There it is
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 'desc, account,
desc
is a reserve word and so must be escaped with back quote
`desc`
Also, total
is a numeric column; so no need of quoting it
Your sql query should be like below
INSERT INTO invoices (total, generated, `desc`, account, market, status, name, hash)
<--Here
VALUES (499.99, NOW(), 'System generated invoice during Market setup/activation.',
'6', '9', 'Active', 'Zac Company - Chandler', 'b0521f6668cb87de009866b67b25b458')