specifically around the variables "$mysql_session_start_date" and $mysql_session_end_date" but they are not used for "$qual" and "time_diff"
$query = "SELECT session_id, title, DATE_FORMAT(DATE_ADD(scheduled_time, INTERVAL $time_diff HOUR), '%m/%d/%y %l:%i%p'), teacher,username...