Updates query to limit results in subquery for MySql according to U4-2329 Browsing Media Slow in 6.1.1