select c.kode as data from perkara_pihak5 a
join pihak b on a.pihak_id=b.id
join tingkat_pendidikan c on b.pendidikan_id=c.id
where a.saksi_pihak_ke=2 and a.perkara_id=#perkara_id#
order by a.urutan
limit 2,1