Bug fix for unique sponsors

- Now checking to see if there any supplied ID’s in the array before
adding it into the query. This was breaking when an empty array was
supplied