     /* get the host override fields */     $data_template_id = db_fetch_cell_prepared('SELECT ' . SQL_NO_CACHE . ' data_template_id      FROM data_template_data      WHERE local_data_id = ?',      array($data_source['id']));      /* get host fields first */     $host_fields = array_rekey(      db_fetch_assoc_prepared('SELECT ' . SQL_NO_CACHE . ' dif.type_code, did.value       FROM data_input_fields AS dif       LEFT JOIN data_input_data AS did       ON dif.id=did.data_input_field_id       WHERE (type_code LIKE "snmp_%" OR type_code