I have a MySQL 5.1.44 Database that I'm using with PHP 5.3.1.
SELECT MAX(t1.tstamp) AS tstamp1, MAX(t2.tstamp) AS tstamp2 FROM table1 t1, table2 t2;
This works perfectly well if both tables contain content, but it returns NULL for both (!) even if only one of the tables is empty. Why does it not simply return the correct value for table1 and null for table2?