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.