SELECT keyword
FROM
(
SELECT tutor_Name AS keyword FROM t
UNION
SELECT subject_name AS keyword FROM s
UNION
SELECT institute_name AS keyword FROM i
) s
WHERE keyword LIKE '%$queryString%'
LIMIT 10
this query display a list with subjects, tutor names, cities according the keyword. Now I need to modify this query with more values. For an example there is a tutor name in the list I want to display his/her current city, his/her profile image etc. So I need to get those values from my city table, address table, tutorImages table.. So anybody can help me to make this query?
Try this it will work: