You need to use a Join
select * from pn_queue a
join pn_cats b on a.pn_cats_id = b.id -- Change this condition to whatever should match on both table.
where b.cat = '2'
and a.email = '2'
Not sure if the join condition is actually right as you don't give enought information, but just modify the condition a.pn_cast_id = b.id
if it ain't.
Edit : Just realized in your example cat and email are both equals to 2
so if it should be the match value then the correct query would simply be :
select * from pn_queue a
join pn_cats b on b.cat = a.email
For more information on SQL Join, you should check this thread What is the difference between "INNER JOIN" and "OUTER JOIN"?. It explain the difference between all possible joins with diagrams/examples etc.