How can I fetch data on a user that I get from a query

So I'm fetching from a table which gives me the uuid of a user. Let's say I'm getting 20 different users, how would I then (using the uuid) fetch data on all of those users?

I might've explained myself poorly, but an example is a posts/comments system in which you want to show the post, and the users details.
Was this page helpful?