I want to group the fields, but I want to show the entire row of the column named remain :
here is the current output without grouping:

And the conclusion with the group:

And I want It when I group:

Here is the mysql query:
SELECT staff.name, staff.designation_id_designation, staff.status_id_status, Concat_Ws('=', leave_remain.leave_type_id_leave_type, leave_remain.days) AS remain FROM staff INNER JOIN leave_remain ON staff.id_staff = leave_remain.staff_id_staff GROUP BY staff.name
source share