Before trying that, take a look at this. I took out all implode() functions and just made a straightforward, hard-coded Ditto call. This is the entire snippet now:
<?php
$resultsArray = array(
'parents'=>'3',
'tpl'=>'TourListingRowTPL',
'filter'=>'duration,100,4',
'display'=>'all',
'orderBy'=>'duration DESC',
'noResults'=>'#####');
$result = $modx->runSnippet('Ditto', $resultsArray);
That produces the same error. The following variations of [tt]’filter’=>[/tt] do not produce the error:
<?php
'filter'=>'duration,100,4|searchDests,19,7'
'filter'=>'searchDests,19,7|duration,100,4'
'filter'=>'searchDests,19,7'