Hi I am trying to get one user profile field value ( donation button code ) by username. Here are the tables

As I am not much experienced with MySQL and learning so I tried with few condition but somehow I am unable to understand how to check username with userprofile tables and get donation content.
SELECT ^users.userid, ^users.handle, ^userprofile.title, ^userprofile.content
FROM ^users, ^userprofile
WHERE ^userprofile.userid=^users.handle AND title= 'donation'
and trying to get output using echo $donation['content']
But of course I know the query statement is not right but now I don’t know how to write. Please help me.
Note: ^ is nothing but database prefix
The simplest solution is nested SELECT