SELECT u.id AS `ID`, u.onlineSatus AS `STATUS`, ud.user_img AS `IMG`, ...
FROM tori_users as u, tori_user_date as ud
WHERE MATCH(u.login, u.email, ud.name, ud.lastname, ud.mobile, ud.about, ud.company_name, ud.patent) AGAINST ('alex' IN BOOLEAN MODE) and u.validStatus = 1 and u.id = ud.user_id
UNION
SELECT p.id AS `ID`, u.onlineSatus AS `STATUS`, p.portfolio_img AS `IMG`,...
from tori_portfolio as p, tori_users as u
where MATCH(p.name, p.lastname, p.about) AGAINST ('alex' IN BOOLEAN MODE) and search_status = 0 and u.validStatus = 1 and u.id = p.id_user
UNION
SELECT a.id AS `ID`, NULL AS `STATUS`, NULL AS `IMG`, ...
FROM tori_adverts as a
WHERE MATCH(a.title, a.description, a.keywords) AGAINST ('alex' IN BOOLEAN MODE) and validate = 1