Fix an exception in reports like this: * https://betabooru.donmai.us/reports/posts?search[period]=day&search[uploader][name]=evazion Caused by the `search` method doing a left join instead of a subquery when filtering by a belongs to association.
Fix an exception in reports like this: * https://betabooru.donmai.us/reports/posts?search[period]=day&search[uploader][name]=evazion Caused by the `search` method doing a left join instead of a subquery when filtering by a belongs to association.