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

If you like it you can upvote it with a like !!!