db->query($sql); $agent = $this->db->fetch_assoc($query); return $agent; } }