$this->db->query($sql,__LINE__,__FILE__);
if(!$this->db->next_record()) {
// We found an Elder not in a companionship, add them to the table
$this->db->query($sql,__LINE__,__FILE__);
if(!$this->db->next_record()) {
// We found an Elder not in a companionship, add them to the table