PortAccessQuery select sa.StartTime, sa.StopTime, \ sa.MaxSessionLength from Servers s, ServerAccess sa, \ AccountTypes at\ where s.IPAddress="%{Client:Name}" \ and s.ServerID = sa.ServerID \ and (sa.Port=%0 or sa.Port=9214328)\ and sa.AccountTypeID=at.AccountTypeID\ and at.AccountType="%1"\ order by sa.Port