Notice: Undefined index

Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111
Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112

I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code in this example use Get.

Note: This code comes from a class I am taking on-line. I did not write the code. I have noticed during the class that the instructor has presented us files to download that contain obvious errors. When he runs this particular file he gets no notices like I am getting.

I also suspect that this has something directly to do with the DB - When I examine the structure of a particular table, it does not contain Telephone or Email rows to save data in, but all of the other necessary rows are there. Again, he created the DB/tables, not me. Is it possible that he forgot these rows and that is why I am getting these notices?

If the code runs and tries to store/retrieve data from rows that do not exist, that would be a major over-site, correct?

Yes, I noticed that earlier also, I believe. This should be happening around lines 62-63? I noticed earlier that both the Telephone and Email are missing directly after tPerson.LastName on line 62. Is that correct, what I am saying about this?

I tried adding both Telephone and Email after tPerson.LastName (as tPerson.Telephone and tPerson.eMail earlier but ran into some other problem that I cannot remember at the moment.)

A comma is a list separator and should be in between column values you want to select. It should not come after the last one which is just before the FROM clause. You can see the SELECT definition here.