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

Incorrect syntax near the keyword 'AND'.

/amp/core/ampDatabase.asp, line 543