This could be caused by creating a criteria that is too complex or is not logical.  Re-evaluate the input or break it up into 2 queries to resolve the error.