Microsoft OLE DB Provider for SQL Server error '80040e14'

Incorrect syntax near ')'.

/Pgs\Include\general.inc, line 764