## -7016: Parameter spec not allowed in this context

### Explanation:

...

1. The attempt was made to specify a parameter in a selected column.

2. A comparison predicate of type <parameter_spec> <comp_op> <parameter_spec> occurred within the search condition.

3. A comparison predicate, IN predicate or quantity comparison predicate specifies a comparison between a parameter and a subquery.

### User Action:

...

1. Replace the parameter with a constant.

2. It is useful to check such a condition within the application. If this is not possible, replace one of the two parameters with a constant, a column name, or an expression which does not solely contain parameters.

3. Replace the parameter with a constant or integrate it into a function (e.g. SUBSTR) so that the data type of the parameter becomes clear.