I haven't looked at this in any great depth, but I notice
$IssueID is only mentioned once. Where is it defined?
PHP Code:
$queryU = mysql_query("SELECT * FROM Updates WHERE IssueID = '$IssueID'");
Perhaps it should be $Issue but this is just a guess.