Could you tell me how to filter the pull-up and pull-down refresh data id?

for example, I am a video list, and each video has a corresponding category. When I pull up and down and refresh it, it must be under a certain category. I should get the newly added video resources, and I need to rule out the data id, that has been displayed and get the latest resources. I find that transmitting the minimum id and the maximum id does not meet the requirements. I am confused.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb1f2f-2398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb1f2f-2398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?