How to get the last 10 queries by table name in MySQL