The line you point to should if anything give a missing parameter or Syntax error.

I don't suppose that you can post a copy of the database with a few Dummy records in it?