SELECT MIN(ht.c) AS min_clock FROM (
 
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839162 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839198 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839121 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839103 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839073 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839132 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882105 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839144 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839109 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839096 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839043 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882098 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839174 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839186 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=836308 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839193 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839078 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839169 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839049 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882093 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=836307 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839055 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839127 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839145 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839211 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839072 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839163 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882104 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839175 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882131 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839054 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882113 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839066 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839115 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882119 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839157 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839060 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839042 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839204 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839151 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839199 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839126 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839180 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882118 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839156 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839067 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882137 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839192 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882130 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839133 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882112 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882099 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839187 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882124 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839181 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882092 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839079 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839210 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839120 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839138 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839097 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839139 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839061 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882136 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839085 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=882125 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839205 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839048 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839108 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839150 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839114 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839102 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839168 ORDER BY ht.clock DESC LIMIT 1) UNION ALL
 (SELECT ht.clock AS c FROM trends_uint ht WHERE ht.itemid=839084 ORDER BY ht.clock DESC LIMIT 1)
 
) ht