How to combine two conditions which are attached to the same field