$SQL_select_user="select user.id,user.sex,user.age,user.telephone,user.surname,user.hospital,subcategory.sub_name, category.cate_name, user.name
,user.date_sick,user.date,user.name_report,user.address,user.moo,user.soi,user.road,user.tambon,
category.cate_name as cate_id
subcategory.sub_name as sub_id
from user inner join subcategory on (user.sub_id = subcategory.sub_id) inner join category on (user.cate_id = category.cate_id)";