Subscribed unsubscribe Subscribe Subscribe

ページャ的な何か

select * from contents order by id desc limit ($page * $limit), $limit;

よりか

select * from contents where id < $last_content_id order by id desc limit $limit;

行間