You may have a NULL column somewhere in your table, items are allowed to go up to item ID 200,000 by default, but can go higher; however, saylinks are false item links and they start at 500,001. For the line that defines the max to 200,000 check
here.