Yoast/wordpress-seo — pull request #1640 by andizer (2014-10-02 12:58:22+00:00)
Title: Trying to optimise code in the hope of fixing issue with long query.

There was a long query, with many id's. Using array_unique to prevent double id's