Sorry Alec, I saw that just as posted it and tried to delete it. It came through again afterwards. This wasn't the issue, just an example returning the same error. Solved it ... was in the query=db(....) statements, which should have been changed to query=db1(....) etc.
Thanks for your reply. > --