Query now support auto LIKE escape. To use it, use one of query properties below:

% LIKE
LIKE %
% LIKE %

% NOT LIKE
NOT LIKE %
% NOT LIKE %

For example:

        if ($channels = ContentModel::fetch(
            array(
                'Where' => array(
                    'name' => array($name, 'LIKE %') // This line
                ),
Remove auto LIKE escape from "NOT LIKE" as it not supposed to be covered by auto LIKE escaper.

Notice that, if you use LIKE and NOT LIKE, you still have to escape wildcards yourself.