vod2-vlan:27017: Argument to $skip cannot be negative
error 15956 line 525
/var/www/html/alkir2-www/class/Tools/ObjectMongo.php
{
    "file": "/var/www/html/alkir2-www/class/Tools/ObjectMongo.php",
    "line": 525,
    "function": "aggregate",
    "class": "MongoCollection",
    "type": "->",
    "args": [
        [
            {
                "$match": {
                    "status": 1,
                    "restricted_ct": {
                        "$ne": "US"
                    },
                    "restricted": 0,
                    "sites._id": "000000000000000000000097"
                }
            },
            {
                "$unwind": "$sites"
            },
            {
                "$match": {
                    "sites.status": 1,
                    "sites._id": "000000000000000000000097"
                }
            },
            {
                "$group": {
                    "_id": {
                        "model_id": "$_id",
                        "pub_start": "$sites.pub_start"
                    }
                }
            },
            {
                "$sort": {
                    "_id.pub_start": -1
                }
            },
            {
                "$skip": -12
            },
            {
                "$limit": 12
            }
        ]
    ]
}
{
    "file": "/var/www/html/alkir2-www/class/Tools/ObjectMongo.php",
    "line": 465,
    "function": "query_load",
    "class": "App_Models",
    "type": "::",
    "args": [
        {
            "type": "agregate",
            "collection": "models",
            "query": [
                {
                    "$match": {
                        "status": 1,
                        "restricted_ct": {
                            "$ne": "US"
                        },
                        "restricted": 0,
                        "sites._id": "000000000000000000000097"
                    }
                },
                {
                    "$unwind": "$sites"
                },
                {
                    "$match": {
                        "sites.status": 1,
                        "sites._id": "000000000000000000000097"
                    }
                },
                {
                    "$group": {
                        "_id": {
                            "model_id": "$_id",
                            "pub_start": "$sites.pub_start"
                        }
                    }
                },
                {
                    "$sort": {
                        "_id.pub_start": -1
                    }
                },
                {
                    "$skip": -12
                },
                {
                    "$limit": 12
                }
            ]
        },
        false
    ]
}
{
    "file": "/var/www/html/alkir2-www/class/App/Models.php",
    "line": 193,
    "function": "agregate_paged_load",
    "class": "App_Models",
    "type": "::",
    "args": [
        [
            {
                "$filters": {
                    "published": {
                        "country": "US",
                        "is_buyer": 0
                    },
                    "site_id": "000000000000000000000097"
                }
            },
            {
                "$unwind": "$sites"
            },
            {
                "$match": {
                    "sites.status": 1,
                    "sites._id": "000000000000000000000097"
                }
            },
            {
                "$group": {
                    "_id": {
                        "model_id": "$_id",
                        "pub_start": "$sites.pub_start"
                    }
                }
            },
            {
                "$sort": {
                    "_id.pub_start": -1
                }
            }
        ],
        -12,
        12,
        false
    ]
}
{
    "file": "/var/www/html/alkir2-www/models.php",
    "line": 61,
    "function": "model_search",
    "class": "App_Models",
    "type": "::",
    "args": [
        {
            "mode": "gallery",
            "view": "news",
            "filters": {
                "site_id": "000000000000000000000097",
                "name": null
            },
            "order": null,
            "page": -1,
            "limit": 12
        }
    ]
}
{
    "file": "/var/www/html/alkir2-www/__catchall.php",
    "line": 29,
    "args": [
        "/var/www/html/alkir2-www/models.php"
    ],
    "function": "include_once"
}