This will not work if where is undefined or null.