SELECT * FROM `eav_attribute` WHERE 'telephone' = attribute_code;
A similar issue:
DELETE FROM customer_eav_attribute WHERE 165 = attribute_id; DELETE FROM eav_attribute WHERE 165 = attribute_id;
I had same error.
I had this error with multiple attributes.
I fixed by open attribute from Stores->Attributes->Products and save again.
This helped me, I hope this will help you too.