The following MySQL statement reports incorrect SQL syntax when run by PHP but I can't find any obvious mistakes in it.
"INSERT INTO {$UserTable} (username, password, email, salt) VALUES ({$Username}, {$Password}, {$Email}, {$Salt});"
I added a few debug functions to my script in order to see what the issue is, but yet to notice the issue.
Final Query
INSERT INTO users (username, password, email, salt) VALUES (TestUser, ea55336ae722b176a64eff46bbf7eeb0f5053a04f5e94670d719656dc496a8a754dd3e36ead83459020021526747b0a9fc82c397a40699e64f37ad2460a61067, TestEmail, EWEQPVVWIGX);
Error message
Unknown column 'TestUser' in 'field list'