There is an error in your SQL syntax.
I'm getting the above error for an insert page. The results and update pages work fine. And I have other sets of results/insert/update pages on the same site that are working fine.
In the past, sometimes this is caused by things being out of place in the generated code. But I can't tell. I've regenerated this set of pages three times. Any ideas?