Is there a way to convert this query into a new function:
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('current_edition') AND TABLE_SCHEMA='db_local';
where current_edition and db_local are variables so it is possible to search for a column using:
search_column('column_name', 'database');