Fixing search.php

Finally search works well