Fix SQL statement for Booking#unbalanced_by_grouped_reference.