You have several problems in your code.
The first in severity is the fact that you use string concatenation instead of parameters.
This makes your code very vulnerable to SQL injection attacks.
The second one is that your SQL is simply wrong.
You are using an implicit join without any join condition.
This makes a cross join, but I'm not sure that this is what you want.
Always use explicit joins. i.e from t1 inner join t2 on(t1.id = t2.id)
.
Implicit joins are out of style for more then 20 years now.
Read this and that for some more information about the differences between implicit and explicit joins
I won't give you an SQL suggestion since it's not very clear what is the desired outcome, but you have to take the points I made into consideration, if you want to write a good code.
update
Based on your comments, you can probably do something like this:
declare @Name varchar(10)='as'
SELECT Table1.*, Table2.*
FROM (
SELECT t1_Id As Id, 1 As TableNumber
FROM Table1
WHERE t1_Name LIKE @Name+'%'
UNION ALL
SELECT t2_Id as Id, 2 As TableNumber
FROM Table2
WHERE t2_Name LIKE @Name+'%'
) SearchResults
LEFT JOIN Table1 ON(t1_Id = Id AND TableNumber = 1)
LEFT JOIN Table2 ON(t2_Id = Id AND TableNumber = 2)
see sql fiddle here