VOL-2 Fixed fatal error in where clause