Summary:
CGCalendar returns no entries - MYSQL SELECT DISTINCT and ORDER BY columns causes error in cgcalendar_utils::get_query
Detailed Description:
Symptom: CGCalendar returns no entries
Root cause was an error reported by MySQL which requires the columns used in
ORDER BY to also be in SELECT DISTINCT statement.
Modified cgcalendar_utils::get_query fixed my issue.
Line 307 was:
$sql = "SELECT DISTINCT E.event_id FROM $events_table_name E\n";
With fix:
$sql = "SELECT DISTINCT E.event_id, E.event_date_start FROM $events_table_name
E\n";
Thanks, Jon