Fixed keyword query so that it doesn't return duplicate results