"SELECT COUNT(*) FROM deductions WHERE contractor_id = ? AND payroll_month = ?
$deductionCount=(int)$this->db->fetchColumn(
AND status IN ('applied','applied_no_response','reduced','accepted') AND deleted_at IS NULL",
"SELECT COUNT(*) FROM deductions WHERE contractor_id = ? AND payroll_month = ? AND status IN ('applied','applied_no_response','reduced','accepted') AND deleted_at IS NULL",