Microsoft SQL Server Native Client 11.0 error '80040e14'

An expression of non-boolean type specified in a context where a condition is expected, near ')'.

/interfaccia\PRT\Pubblicazioni\Procedimenti\Procedimenti_Dettaglio.asp, line 22