MYSQL PHP从两个独立的表中选择数据进行搜索

I have built a search using PHP, MySQL and Jquery. I am currently using two search boxes for selecting data from two independent tables.

In the first table I have details about monks. I am using the following MySQL query to fetch records:

SELECT * FROM munishri, upadhis WHERE (name LIKE ? OR uname LIKE ? OR prefix LIKE ? OR suffix LIKE ? OR alias LIKE ? ) AND upadhi=uid ORDER BY upadhi, name

In the second table I have records about temples and I am using the following query to fetch its records:

SELECT * FROM temples WHERE tname LIKE ? OR tadd LIKE ?

This type of search is good for individual pages, but not for the module on the top of website. Is there any way to display results from both the independent tables in a single textbox without making the user to pick the table? Just like a simple search fetches records from various places.

Edit:

The top search module currently is being run by jquery using the code below

$(function(){
    $("#search").autocomplete({
        //autoFocus: true,
        source: "search/munis.php",
        select: function (event, ui) {
            window.location = ui.item.url;
        }
    });
});