In can also be caused by the way how it is interpreted OR condition. Have you tried to log the performed query?
OR