Right now I have a small database with two tables that look something like this:
users table ==================== id name status_id 1 Bo
What you need is this
SELECT * FROM `users` JOIN statuses ON statuses.id = users.status_id WHERE `status_id` = 2";
and then you can refer to
$row['value'];