Query can't contain a Database parameter.
Error 3222
Change the parameter field data type17F82T4 for this parameter queryG72497 to a valid field data type and then try the operation again.
See Also
PARAMETERS Declaration (SQL)2ZFTE2C