Gunakan ini:
SELECT DISTINCT column_1 AS keywords, 'table_1' AS tablename
FROM table_1
UNION ALL
SELECT DISTINCT column_2 AS keywords, 'table_2' AS tablename
FROM table_2
Itu menambahkan satu kolom lagi tablename
ke kumpulan hasil, yang berisi nama tabel asal.