SELECT ID, Title, FromTable
FROM (SELECT ID, ArticleName AS Title, 'Article' AS FromTable
FROM Article AS A
UNION ALL
SELECT ID, VideoName AS Title, 'Video' AS FromTable
FROM Video AS V
UNION ALL
SELECT ID, DownloadName AS Title, 'Download' AS FromTable
FROM Download AS D) AS T
WHERE (Title LIKE '%q%')