civicrm_payment_processor table missing payment_processor_type field


Either need to use the civicrm_payment_processor.name field 
or left join to civicrm_payment_processor_type on civicrm_payment_processor.payment_processor_type_id = civicrm_payment_processor_type.id to get this to work.