Я собираюсь сделать предположение, что запись с наибольшим идентификатором является «последней» (при условии строгого увеличения последовательных идентификаторов, которые уникальны в таблице).Если у вас есть лучшее определение «последний», которое может иметь значение.
Чтобы получить одну «последнюю» запись, вы можете сделать:
Select * from table_1 where id = (select max(id) from table_1);
Чтобы получить результаты всех 50таблиц в один набор результатов, вы можете сделать:
Select * from table_1 where id = (select max(id) from table_1)
union
Select * from table_2 where id = (select max(id) from table_2)
union
Select * from table_3 where id = (select max(id) from table_3)
union...
MySQL-решение может быть
Select * from table_1 order by id desc limit 1
union
Select * from table_2 order by id desc limit 1
union
Select * from table_3 order by id desc limit 1
union...
На основе вашего редактирования (где вы на самом делеопределите, что вы подразумеваете под «последним»):
Select * from table_1 order by date desc, time desc, id desc limit 1
union
Select * from table_2 order by date desc, time desc, id desc limit 1
union
Select * from table_3 order by date desc, time desc, id desc limit 1
union...