there is really no need to find the host object, what you are really interested is in the host_id.
when the query contains the id, then you dont need to do anything extra besides to search for HostParameters with reference_id = host_id.

if the id, is the hostname, then you would need to search for the host record to find its id.