How can I make the search button use both boxes to search with?

I have managed to create two search boxes but when testing the search feature I find that it is only actually using the second box to search the website with. How can I make it use both boxes? (What? and Where?)

My site: