civicrm_payment_processor table does not have a payment_processor_type field.

Either need to left join to civicrm_payment_processor_type on civicrm_payment_processor.payment_processor_type_id = civicrm_payment_processor_type.id, or use the civicrm_payment_processor.name field instead.