Filtering a table based on another table

I have two tables - one that has a list of users, and one that has equipment checked out to them. I would like a list view that restricts the table to those users with something checked out to them and none of the others.
I would use this Select to see what I want, is there a way to do this in xataface? I am pretty new to the php programming... Thanks for the help!
SELECT PESTuser.* FROM PESTuser, PESTequip where PESTuser.PrimaryKey=PESTequip.Pestkey;
I would use this Select to see what I want, is there a way to do this in xataface? I am pretty new to the php programming... Thanks for the help!
SELECT PESTuser.* FROM PESTuser, PESTequip where PESTuser.PrimaryKey=PESTequip.Pestkey;