table('support_rep') ->idVar('id_support_rep') ->load($id); } public static function getLoggedInRep() { $rep = Support_Rep::q( 'SELECT * FROM `support_rep` '. 'WHERE `name` like \'' . $_SESSION['username'] . '\' '. 'LIMIT 1'); return $rep; } }