It says "ya mtoto ni mwanafunzi" is wrong.
It is. "Ya" is roughly "of" (on of the many forms of "of"), not "the"!