We have rewritten this select for best performance.
Thanks by advice
In the new revision you don't use r2.revision_id as content_rev_id, r2.title as content_filename and i.content_type
Best regards,