mikew71,
Can you provide more information? Are you able to successfully run the very same query against other tables, and the "invalid argument" error only occurs when running against this particular table?
If the query contains any functions, check the contents of the fields being used as parameters to the function(s). There could be rogue data in there which doesn't conform to what the function expects.
How many records are contained in the problem table?