<?php
     $session =& JFactory::getSession();
     $program1 = $session->get('program', '0');
     $userid = $session->get('cf_user_id', '0');
     $suserid=$userid;
     $searchrec = $program1;
     echo "WHERE program='$searchrec' AND cf_user_id=$suserid";
   ?>
   