LONG
is a reserved keyword and happens to be the name of your column. In order to avoid syntax error, the column name should be escape with backticks.
INSERT INTO results_main(Name, Short, Med, `Long`, VLong, ...) VALUES (....)
- MySQL Reserved Keywords List
If you have the privilege to alter the column, change the name to a non-reserved keyword to avoid problem getting back on the future.
As a sidenote, the query is vulnerable with SQL Injection if the value(s) of the variables came from the outside. Please take a look at the article below to learn how to prevent from it. By using PreparedStatements
you can get rid of using single quotes around values.
- How to prevent SQL injection in PHP?