In a previous posts, I’ve talked about how to:
There’s a lot more to do than just viewing the last query and selecting distinct rows, though. For example, you can also JOIN two tables in WordPress without having to write raw SQL.
So to be consistent with some of the previous posts, I thought I’d share how to do this using the WordPress API .