[sql]select * from
(
select datefield, field1, field2, 'table1' AS `from` from table1
union all
select datefield, field1, field2, 'table2' AS `from` from table2
union all
select datefield, field1, field2, 'table3' AS `from` from table3
union all
select datefield, field1, field2, 'table4' AS `from` from table4
)
order by datefield DESC
limit 5[/sql]
където from заради "'table1' AS `from`" връща table1