select l1.*,lp.* from lwlawtext l1 left join lwphase lp on l1.f_lwphaseid=lp.id where l1.f_lwlawid = 115887 order by lp.id