Thanks jarekgol, but I just verified that it is required. Removing the leftJoin() results in the following error:
Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'PaymentsReceived.amount' in 'field list'
Thanks jarekgol, but I just verified that it is required. Removing the leftJoin() results in the following error:
Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'PaymentsReceived.amount' in 'field list'