404 page displays when course.php and prof.php fail to execute mysql query