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