Clear last query log when starting a new transaction.