Thanks Vincent!

Wouldn't the global variable issue happen every time the report is run? In my case it'll do a number of printouts just fine, then throw the error on particular records. After a lot more testing yesterday, this only seems to have happened on my development machine, so it could be a data issue - even if I can't figure out just what the data issue is.

Unfortunately, the client will not upgrade anything - even if the licensing is paid for. They're still running MySQl 5.5!