Make a separate search table which form indexes with others related tables. Fire your query direct to this table and make join with others table...
Hey, if some one need social engine programmer. Here he is.
Separate names with a comma.