title: Select after multiple union
body: <p>i need to select distinct value from a multiple union.
  I nee to use union on multiple table on different databases.
  But i i try to use this code:</p>
  
  <pre><code>SELECT DISTINCT name ((SELECT name FROM tab1) UNION (SELECT name FROM tab2))
  </code></pre>
  
  <p>i have this error:</p>
  
  <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNION (SELECT name FROM tab2 )' at line 1
  </code></pre>