You are selecting two columns (credit & debit) in the first unioned select, and five in the second (id, user_id, movement_type_id, amount, description). You need to select the same number of columns and they should presumably be the same type of data.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community