lie_supplier_attachments.field_name,lie_supplier_attachments.supplier_id as supplier_attachments_supplier_id')
lie_supplier_attachment.quality_assurance_agreement,lie_supplier_attachment.supplier_id as supplier_attachment_supplier_id')
->where(function($q){
->where(function($q){
$q->whereRaw("(SELECT count(1) FROM lie_supplier_attachments WHERE `lie_supplier_attachments`.`supplier_id` = `lie_supplier_channel`.`supplier_id` AND `lie_supplier_attachments`.field_name = 'quality_assurance_agreement') = 0");