I'm using the following SQL (wrapped in php) to find posts in a wordpress database:
$sql = "
SELECT
p.*
FROM
{$wpdb->prefix}most_popular mp
INNER JOIN {$wpdb->prefix}posts p ON mp.post_id = p.ID
WHERE
p.post_type IN ( $holder ) AND
p.post_status = 'publish'
{$order}
LIMIT %d
";
And I want to add an additional condition that the post be in a specific category. Any thoughts?