how to do a query from last 50 records in an sql table code example Example: php sql last 10 rows SELECT * FROM big_table ORDER BY A DESC LIMIT 10