SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it with a sub-query:
SELECT * FROM ( SELECT * FROM table ORDER BY id DESC LIMIT 50 ) sub ORDER BY id ASC
This will select the last 50 rows from table, and then order them in ascending order.
table