get_the_date ignores php locales (it uses probably lang settings from admin panel).
You can try this solution:
setlocale(LC_TIME, “th_TH.UTF-8”);
echo strftime("%A %e %B %Y", get_post_time('U'));
or You can set thai language for the whole site in admin panel.
$result->fetch_assoc() probably generate fatal error because $mydb->query($qry) returns only int or false.
Try this:
$results = $mydb->get_results($qry, 'ARRAY_A');
foerach ($results as $list) {
...
}
For security reasons you should use prepare function to generate safe $qry ($mydb->prepare).