Você tem que fazer isso dando a cada coluna seu próprio alias:
select table.id as table_id, table.title as table_title,
table2.id as table2_id, table2.title as table2_title
from . . .
select table.id as table_id, table.title as table_title,
table2.id as table2_id, table2.title as table2_title
from . . .