Hi,
I am trying to create a query for a list of messages, so that the oldest come first. So the query so far is
SELECT * FROM messages ORDER BY sent
right? But then I want to limit the query so that I get one hundred of the most recent (still ordered by oldest on top). So, kind of like
[ oldest ] = 25 rows _
[ old ] = 25 rows ||
[ um ] = 25 rows ||
[ new ] = 25 rows ||
[ newest ] = 25 rows _||
I don't know how many there are always going to be, so I can't just do LIMIT and a specific number and then 100.
It is kind of like "SELECT * FROM messages ORDER by sent", then reverse that, then add a LIMIT 0,100.
Thanks for your help