Quote: onedego "Wow! That's impressive. I've seen some coding errors in my time but to error on line 1? Oh dear.'"
Looking at the error message, there wasn't even a line 1 - there should be some text between the quotes showing the code that it doesn't like. Looks like it was passed an empty sql query!