Here is my code which show products based on specific category
echo $this->getLayout()->createBlock('catalog/product_list')
->setData('category_id', '25')
// ->setAttribute('product_type', $category->getName(), 'text')
->setData('column_count', '4')
->setData('mode', 'grid')
->setData('limit', '4')
->setData('name', 'product_list')
->setTemplate('catalog/product/checkout_list.phtml')
->toHtml();
But what I am trying to implement is, say these are product ids 2,4 and Category Id 25 have products 1,2,3,4. So I would like to show only 2 product, but the above method shows all the 4 products. Any only can help me figure out this?