Fixed empty array in where clause - closes #113