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

@yisrael-wix You are correct, but I had updated his front end example and removed the .then() clause. The docs indicated that Wixlogin was deprecated, and I revised the login using the newer authentication() function in ‘wix-members’, and thus removed the then(). Therefore it is my understanding that the await clauses will need the async before function name.
@avanthi-senthilk indicated that the then() clause was failing and falling through to the .catch(). He didn’t indicate which statement was failing. He did indicate that the backend function was working properly.