fix bug where = is used instead of SQL IN operator