I want to show two configurable products on a cms page. The two products are under a sub category (id = 343). I've used below code in my cms page:

```
{{block type="core/template" name="home.catalog.product.list" 
alias="products_homepage" category_id="343"  product_count="2" 
template="catalog/product/list.phtml"}}

```

but it gives this error:

> 
> Fatal error: Call to a member function count() on a non-object in
>  /home2/hotelhome/public\_html/app/design/frontend/default/sm\_sport/template/catalog/product/list.phtml
>  on line 38
> 
> 
>