query(<< ( SELECT max(last_update) FROM ( SELECT last_update FROM mm_history_cache UNION ALL SELECT 0 ) AS with_default ) EOF ); $query->execute(); }