SELECT lectures.*, videos.file_size, videos.path, videos.id AS video_id, videos.hash,
MAX(videos.time_created, videos.time_updated, lectures.time_created, lectures.time_updated) as updated,
videos.time_created AS video_created, videos.time_updated AS video_updated,
courses.title AS course_title, courses.handle AS course_handle, courses.semester, courses.organizer AS course_organizer, courses.short as course_short,
formats.description AS format_description, formats.player_prio