How to get a value from a database based on a value from the same row, but different column - pls help!!!!!!!!!!

As far as I can tell, he doesn’t need async for loginTeacher_click() as he’s calling await checkUserExists from a .then() function that has async.