select c.kode as data from perkara_pengacara a
join pihak b on a.pihak_id=b.id
join tingkat_pendidikan c on b.pendidikan_id=c.id
where a.pihak_ke=1 and a.urutan=1 and a.perkara_id=#perkara_id#