Say:
select id from where navid in () and (inputtime>='2022-01-30 23:06:22' and inputtime<='2023-01-30 23:06:22') and isdisplay=1 order by paixu asc,inputtime desc,id descSay:
select * from where navid in () and (inputtime>='2022-01-30 23:06:22' and inputtime<='2023-01-30 23:06:22') and isdisplay=1 order by paixu asc,inputtime desc,id desc limit 0,