How can I display only the LAST 10 results from a mysql query?
I want anything prior to the last 10 results to be ignored when the results are output.
SELECT * FROM (SELECT * FROM graphs WHERE sid=2 ORDER BY id DESC LIMIT 10) g ORDER BY g.id
Fetching last 10 records but resultset still in asc order.