Fix database columns for dashboard stats

This commit is contained in:
Ruben Ramirez 2025-04-04 09:21:00 -05:00
parent 0124c0fa85
commit a90adce7e3

View file

@ -633,10 +633,10 @@ function quiztech_get_dashboard_recent_invitations($count = 5) {
}
$query = $wpdb->prepare(
"SELECT inv.applicant_email, inv.created_at, p.post_title AS job_title
"SELECT inv.applicant_email, inv.created_timestamp, p.post_title AS job_title
FROM {$invitations_table} inv
LEFT JOIN {$posts_table} p ON inv.job_id = p.ID
ORDER BY inv.created_at DESC
ORDER BY inv.created_timestamp DESC
LIMIT %d",
absint($count)
);