add function get_hosts_field

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: models/ehm_settings_model.php
Line Number: 140
Merge pull request #9 from momodev/patch-5

awesome works!!!