select
     d00.nr01 as nr01,
     d00.p19 as p19,
     d00.p2 as p2,
     d00.p3 as p3,
     d00.p0114 as p0114,
     d00.p0115 as p0115,
     d00.p0116 as p0116,
     d00.p900  as usercode,
     us0.p100  as username,
     us5.pc101 as usermail,
     us5.pc105 as userphone,
     us5.pc106 as usermobile
from d00
LEFT JOIN us0 ON us0.p01=d00.p900
LEFT JOIN us5 ON us5.p01=d00.p900
WHERE d00.nr01='{np_pro}' ;