My answer to the question on stackoverflow http://stackoverflow.com/questions/16067272/in-php-get-entire-word-from-mysql-search-result-using-like