This is odd. You might want to try using the query hint instead, but if
your code is working in some cases, then it is probably valid.
What is different about this query than your queries that worked? Can you
try to narrow down what the different in the query or object model is. Is
the class involved in inheritance? Please include your mappings.