Bad qury creation on double select field and RUN button on grid advanced search

I have a grid where I search in a field. This field is of type ‘double select’ and the condition is ‘equal’. The automatic lookup is: ‘select id, description FROM tb_1 order by description’. Without one RUN type button the query created in the case of ‘advanced search’ is: '… WHERE id IN (val1, val2, …, valn) which is correct. By inserting a RUN type button to produce a pdf report on each selected record, the query created is: ‘… WHERE (id LIKE’% val1%, OR id LIKE ‘% val2%’, …, OR id LIKE ‘% valn%’) which obviously does not return the correct values. Performing the same operation on ‘Dynamic search’ works both with and without the RUN button