friends i'm trying with mysql like and OR operator but i'm not getting exact output.

SELECT registration1.*,registration2.*
FROM registration1 JOIN registration2
ON registration2.emailid=registration1.emailid
WHERE(keyskills LIKE '%$search%') OR (keyskills='$search1')


this is my code. LIKE operator is working properly but keyskills='$search1' this is not working while using keyskills LIKE '%$search%' this. please let me know what mistake i did...
please friends it's very urgent help me....