select id, begin_time, end_time, score_report_path, team_name
from exam
where team_name = ?
  and DATE (begin_time) = CURDATE()
order by begin_time desc limit 1