You are trying to merge 2 different select record into one result set and one way is using union all and then tag each record type something as
select
e.employee_id as id ,
e.employee_name as name,
'Employee' as type
from employee e
left join project_team pt on pt.employee_id = e.employee_id
where pt.employee_id is null
union all
select
p.project_code as id ,
p.project_title as name,
'Project' as type
from project p
left join project_team pt on pt.project_code = p.project_code
where pt.project_code is null ;
Here is a test case
mysql> select * from employee ;
+-------------+---------------+
| employee_id | employee_name |
+-------------+---------------+
| 1 | A |
| 2 | B |
| 3 | C |
| 4 | D |
| 5 | E |
+-------------+---------------+
5 rows in set (0.00 sec)
mysql> select * from project ;
+--------------+---------------+
| project_code | project_title |
+--------------+---------------+
| 1 | P1 |
| 2 | P2 |
| 3 | P3 |
| 4 | P4 |
+--------------+---------------+
4 rows in set (0.00 sec)
mysql> select * from project_team ;
+--------------+--------------+
| project_code | employee_id |
+--------------+--------------+
| 1 | 1 |
| 1 | 2 |
| 2 | 3 |
| 2 | 4 |
| 3 | 2 |
| 3 | 1 |
| 3 | 3 |
+--------------+--------------+
Running the above query will give you as
+------+------+----------+
| id | name | type |
+------+------+----------+
| 5 | E | Employee |
| 4 | P4 | Project |
+------+------+----------+