Trim $sql before checking for SELECT

This is being done is the parent::_execute, but it got missed here.