select * from (select id from qs_jobs WHERE (_id='16-422713') LIMIT 1 union select id from qs_jobs_tmp WHERE (_id='16-422713') LIMIT 1)tmp