fix bug with CLOSE search

problem with querycache
Merge branch 'WORK-JG2' of https://github.com/olanto/MYCAT into WORK-JG2