I think you're right and I changed $ID to $accountID but that wasn't the problem. $ID actually contained their registration number, I just had to rename ID to accountID to get the variables to work.
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"