SELECT a.* FROM ((SELECT id FROM mes_report_flow_card) UNION ALL (SELECT id FROM mes_report_part_work_order )) AS alimit 0,10;