Fixed issue #2657 (Can't escape characters inside an IN condition)