I have this MySQL query that is supposed to give me the amount in and out of all bank accounts in the database for the last 30 days. It even fills gaps with the use of a joi