SELECT t1.id video_item_id, t1.name video_name, t1.description, t1.averge_star, t1.study_video_items_count, t1.link, t1.created_at, t1.updated_at, t2.cover_url, t2.file_url, t2.play_url, t1.video_id FROM video_items t1 LEFT JOIN `videos` t2 ON t1.`video_id` = t2.`id` WHERE t1.`video_id` IS NOT NULL