{foreach item=element loop=$recElements} {$element.rec_short_description} //{$element.firstname},{$element.rec_where}
...............................................................
{*this is should only show results for the id passed from the outer query*} Category: {foreach item=type from=$element.recTypes} {$type.rectypetitle} {/foreach}
The details are....
{$element.rec_detail_description}
...............................................................
{/foreach}