{foreach item=query from=$trace_data} {if $query.error} {/if}
QUERY:
{$query.query}
ERROR:
{$query.error}
{if $query.explain} {foreach key=key item=item from=$query.explain[0]} {/foreach} {foreach item=explain_row from=$query.explain} {foreach item=item from=$explain_row} {/foreach} {/foreach}
{$key}
{$item}
{/if}
{/foreach}