(SELECT UNIX_TIMESTAMP(MAX(UPDATE_TIME)) AS stamp
FROM information_schema.tables
WHERE table_schema = :db
AND table_name IN(:names))
UNION
(SELECT UNIX_TIMESTAMP(MAX(CREATE_TIME)) AS stamp
FROM information_schema.tables
WHERE table_schema = :db
AND table_name IN(:names))
ORDER BY stamp DESC
LIMIT 1;