orientechnologies/orientdb — pull request #1753 by Volune (2013-10-21 10:07:17+00:00)
Title: WHERE @rid in [...] doesn't work with rids over multiple clusters

Tested with 1.5.1 and develop branch

```SQL
SELECT FROM Thing WHERE @rid in [#10:20,#11:5]
```
Where the position of the greatest rid (5) is lesser than the position of the smallest rid (20), orientdb can't find any document.

Pull request provides test and fix.