Added error when non valid option is used in where conditions