get posts, run a custom query, and join the results

get posts, run a custom query, and join the results