У меня SQL-запрос, я не знаю, как писать в спящем режиме
select lp.lnprdtname,la.lid,la.step
from mfic.lnapp as la
left join mfic.lnprdt as lp on lp.lnprdtid in
(select lnprdtid from mfic.lnapp where lid in
(select lid from mfic.lnbrwr where brwrid in
(select brwrid from mfic.brwr where uid=1)))
where la.lid in
(select lid from mfic.lnbrwr where brwrid in
(select brwrid from mfic.brwr where uid=1));