import db res = db.execute_query("SELECT id, email, status, created_at FROM orders ORDER BY created_at DESC LIMIT 5") for r in res: print(r)