Yeah, it's a danbooru thing but you can get around it by adding an id query such as : cosplay id:..101895 (the id from the last image on page 999). It has something to do with counts and how danbooru chokes when you get to page 1000.