My problem is not with Wordpress's WPDB class, but with the MySQL syntax. I'm trying make the following sequence work:
- Get an array of all Posts IDs
- Filter out posts from a specific Category
- Filter out duplicates, revisions, drafts etc. Only show Published content.
Help? Thank you.