select distinct table_name from information_schema.columns where column_name in ('columnA','ColumnB') and table_schema = 'YourDatabase';