I'm not failar with that framework but I did notice that on line 6 you include an 'or' in the where condition but not in the one above.
Surely if you need it in the second, its's needed in the first?
Just a thought...