select h.hospcode,h.name,d.disease_name,count(distinct(o.hn)) as bb,count(distinct(o.vn)) as cc from ovstdiag o
left outer join icd10_sss i on i.code = o.icd10
left outer join disease d on d.disease_code=i.disease_code
left outer join vn_stat v on v.vn=o.vn
left outer join so_recv s on s.moo_id=concat(v.aid,v.moopart)
left outer join hospcode h on h.hospcode=s.hospsub
where o.vstdate between '2008-01-01'and'2008-12-31' and i.disease_code not in(' ') and v.aid like('3503%') and h.name is not null
group by s.hospsub,i.disease_code
order by s.hospsub,cc desc
ตอนที่จะดึงขึ้น error ครับ