Easier answer by @Arth
select project_id,
CONCAT('title', project_id) title,
SUM(month=1) month_1,
SUM(month=2) month_2,
SUM(month=3) month_3
from table1 test
group by project_id;
Fiddle
select
`PROJECT_ID`,Title,
coalesce(count(`MONTH_1`),0) as `MONTH_1`,
coalesce(count(`MONTH_2`),0) as `MONTH_2`,
coalesce(count(`MONTH_3`),0) as `MONTH_3`
from
(select
`PROJECT_ID`, concat('Title', `PROJECT_ID`) as Title,
case when `MONTH` = 1 then `MEMBER_ID` end as `MONTH_1`,
case when `MONTH` = 2 then `MEMBER_ID` end as `MONTH_2`,
case when `MONTH` = 3 then `MEMBER_ID` end as `MONTH_3`
from Table1) test
group by PROJECT_ID;
fiddle