Since the only value you need is mintotal you can do this
	Code:
	 
$mintotal = func_query_first_cell("select mintotal from $sql_tbl[xcart_shipping_rates] where rate = '0' and shippingid = '173'");
$smary->assign("mintotal",$mintotal);
 Then use $mintotal in the template to calculate whatever you need