select x.* ,concat(p.pname,p.fname," ",p.lname) as ptname,xh.*,pt.*,p.*,z.pttypeno,xh.*,x1.xn, concat("Full Age") as full_age from xray_report x left outer join patient p on p.hn=x.hn left outer join xray_head xh on xh.hn=x.hn left outer join pttype pt on pt.pttype=xh.pttype left outer join xrayxn x1 on x1.hn=x.hn left outer join pttypehistory z on z.pttype=p.pttype where x.xn="281"