private static function rewriteQuery($query, $placeholderPosition, array $newPlaceholders)
    {
        return substr($query, 0, $placeholderPosition).
            implode(', ', $newPlaceholders).
            substr($query, $placeholderPosition + 1);
    }