fix backwards queries, remove '<' and replace with uglier query
Merge pull request #1559 from gpazo/fixLessThanSign

Fix less than sign