#4 IN clause is not working as expected. Throws exception when part of criteria query