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

Incorrect syntax near the keyword 'and'.

/virtual/includes/databaseFunctions.asp, line 37