if ($myID == 0)
{
$finder = \XF::finder('XF:UserUpgradeActive');
$result = $finder
->fetchOne();
userTestId = $result['user_upgrade_id']
}
else{
$userTestId = $myID ;
}
$finder = \XF::finder('XF:UserUpgradeActive');
$results = $finder
->where('user_upgrade_id', '=', $userTestId)
->order('start_date', 'ASC')
->fetch();