in reply to DBI parse errors
If its the spaces then you need to bind those columns to a text type or use $dbh->quote(...) to get the proper quoting characters around the strings.