各列に独自のエイリアスを指定する必要があります:
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 . . .