Get Attribute with unkown classes:
SELECT
ea.attribute_code,
eet.entity_type_code,
ea.source_model
FROM eav_attribute AS ea JOIN eav_entity_type AS eet ON(eet.entity_type_id=ea.entity_type_id)
WHERE source_model IS NOT NULL
AND source_model NOT IN (