bug fix. Using array in where condition.