An error in the SQL command was detected

The failed SQL Statement is:

An expression of non-boolean type specified in a context where a condition is expected, near '1'. [1526:4145]

If this continues, contact technical support.

The SQL Statement is: Select * from SCHEDULEDTASKS where 1