We can't tell from that: you need to start by looking at your database and what values the inventory table contains. Something is there is "different" and is causing the problem.
If you have a lot of data, it may help if you try retrieving "pages" of information until you find which "page" it's in - then narrow it down to a particular row from there using the same method.
SELECT * FROM
(SELECT ColumnA, ColumnB, ROW_NUMBER() OVER (ORDER BY ColumnA DESC) AS R FROM inventory) AS A
WHERE A.R>=0 AND a.R<25