Fixing invalid table name reference in cron job

Thanks Tony Soto
https://moodle.org/mod/forum/discuss.php?d=159820&parent=1090411