this select works in Workbench and Python:
SELECT MAX(transactions.num) AS nr , MAX(transactions.enter_date) AS enter, MAX(transactions.post_date) AS post, M