SQL variables must be array structures in an SQL array statement.
Define and specify the SQL variable correctly.