> So, is there a way to do this in one query without creating a temp table?
How about a view:
create view test as select max(date) from log order by date_time desc limit12;
select max(date) from test;
Greetings,Bjoern