in reply to Re^2: DBI using Hashes To Create
in thread DBI using Hashes To Create

"from" is a reserved word in SQL. I'm guessing "to" might be too.

You should be using less bugprone column names, but you might try just putting backquotes ("`") around those column names. That's a way with Mysql to allow special characters, or reserved words, in column names. See quoting identifiers.