You meant <code>[ 'query' => $sql, 'all' => $all ]</code> or <code>['query': $sql, 'all': $all ]</code>?