You can not get the bank inquiry removed. You applied for a home equity loan. It is a legitimate inquiry. I understand you did not know that a bankruptcy (even due to incorrect info) was on your report. That does not make the inquiry illegitimate. Sorry, but checking your own report is free and easy. Never apply for credit without first checking your report.
As for the bankruptcy, you can order your court documents and submit a dispute to have the information properly updated. What could have happened is, last time you disputed, it dropped off during the investigation. That’s not common but it can happen. Then it came back verified and they put it back on without the correct status. Or when TU switched public records providers (last fall I think) the new company gave them bad info. Either way the remedy is the same.