ginatrapani/ThinkUp — pull request #1581 by nilakshdas (2013-05-02 08:20:52+00:00)
Title: 1578-search-box-bug

When searching for terms with repetitive keywords, the naive condition would check if the keyword matches with the last keyword in the array and appends an 'AND' accordingly. This bug was easily fixed by reloading the array of keywords with distinct keywords only by using array_unique(). This fixes the bug as well as enhances the performance of MySQL search.