Pass a list of search terms and tables to search. All it returns is part of a sql where clause