MongoDB\Driver\Exception\InvalidArgumentException Object
(
    [message:protected] => invalid document for insert: keys cannot begin with "$": "$where"
    [string:Exception:private] => 
    [code:protected] => 22
    [file:protected] => /var/www/corporate-admin/app/application/helpers/mongo_helper.php
    [line:protected] => 228
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/corporate-admin/app/application/helpers/mongo_helper.php
                    [line] => 228
                    [function] => insert
                    [class] => MongoDB\Driver\BulkWrite
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /var/www/corporate-admin/app/application/helpers/mongo_helper.php
                    [line] => 84
                    [function] => mongo_insert
                )

            [2] => Array
                (
                    [file] => /var/www/corporate-admin/app/application/controllers/Home.php
                    [line] => 844
                    [function] => mongo_find
                )

            [3] => Array
                (
                    [file] => /var/www/corporate-admin/app/system/core/CodeIgniter.php
                    [line] => 514
                    [function] => car_parts
                    [class] => Home
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /var/www/corporate-admin/app/index.php
                    [line] => 316
                    [args] => Array
                        (
                            [0] => /var/www/corporate-admin/app/system/core/CodeIgniter.php
                        )

                    [function] => require_once
                )

        )

    [previous:Exception:private] => 
)