Error

Dialog execution failed ([Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. <512> [Microsoft][ODBC SQL Server Driver][SQL Server]The cursor was not declared. <16945>).