Global_Functions::send_sql_query($sSQL, __FILE__, __LINE__); while ($aRow = mysql_fetch_assoc($rResult)) { $aFooterListings[] = $aRow; } } $GLOBALS['Smarty']->assign('footer_listings', $aFooterListings); $GLOBALS['Smarty']->assign('total_listings', $iTotalListings); $GLOBALS['Smarty']->display('featured_listings/baby_photographers.tpl'); ?>