I am creating a paging system and in mysql I am using it this way
I get from record 1 and walk to 20
SELECT * FROM sistema LIMIT 1 , 20
I get from record 2 and walk to 21
SELECT * FROM sistema LIMIT 2 , 21
and so on but I want it to have another LIMIT for example if you have 500 record to do this way
SELECT * FROM LIMIT 300 system
More in the same query I want to page within this 300 record something like
SELECT * FROM sistema LIMIT 1 , 20 , 300