select i.Institute_code,i.institute_name_thai from tbl_institute i ,tbl_institute_transaction it where i.Institute_code = it.Institute_code and month(it.last_update)='12' and year(it.last_update)='2019' order by it.last_update DESC,i.institute_name_thai