Zend_Db_Statement_Exception Object
(
    [message:protected] => SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "djt2.affiliates_campaigns" does not exist
LINE 1: UPDATE djt2.affiliates_campaigns SET clicks=clicks+1
               ^
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/app/current/djtunes/core/lib/zend/ZendFramework-1.8.0/library/Zend/Db/Statement/Pdo.php
    [line:protected] => 238
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/app/current/djtunes/core/lib/zend/ZendFramework-1.8.0/library/Zend/Db/Statement.php
                    [line] => 283
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/app/current/djtunes/core/lib/zend/ZendFramework-1.8.0/library/Zend/Db/Adapter/Abstract.php
                    [line] => 484
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/app/current/djtunes/core/lib/zend/ZendFramework-1.8.0/library/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 235
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => UPDATE djt2.affiliates_campaigns SET clicks=clicks+1
                WHERE
                    "affId"=7
                    AND type='l'
                    AND type_id=207514
                    AND bannertype='1'
                    AND referrer='no referrer'  
                    AND date='2017-02-27'  
                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/app/current/djtunes/core/classes/ModernDBLayerAffiliate.class.php
                    [line] => 568
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => UPDATE djt2.affiliates_campaigns SET clicks=clicks+1
                WHERE
                    "affId"=7
                    AND type='l'
                    AND type_id=207514
                    AND bannertype='1'
                    AND referrer='no referrer'  
                    AND date='2017-02-27'  
                        )

                )

            [4] => Array
                (
                    [file] => /var/app/current/djtunes/core/classes/ModernDBLayerBase.class.php
                    [line] => 36
                    [function] => fetch_affiliates_campaigns_log
                    [class] => ModernDBLayerAffiliate
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [affId] => 7
                                    [type] => l
                                    [type_id] => 207514
                                    [bannertype] => 1
                                    [log] => clicks
                                    [referrer] => no referrer
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /var/app/current/djtunes/core/classes/ModernDBLayer.class.php
                    [line] => 662
                    [function] => immediateQuery
                    [class] => ModernDBLayerBase
                    [type] => ->
                    [args] => Array
                        (
                            [0] => affiliates_campaigns_log
                            [1] => Array
                                (
                                    [affId] => 7
                                    [type] => l
                                    [type_id] => 207514
                                    [bannertype] => 1
                                    [log] => clicks
                                    [referrer] => no referrer
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /var/app/current/djtunes/core/classes/affiliation.class.php
                    [line] => 276
                    [function] => immediateQuery
                    [class] => ModernDBLayer
                    [type] => ->
                    [args] => Array
                        (
                            [0] => affiliates_campaigns_log
                            [1] => Array
                                (
                                    [affId] => 7
                                    [type] => l
                                    [type_id] => 207514
                                    [bannertype] => 1
                                    [log] => clicks
                                    [referrer] => no referrer
                                )

                        )

                )

            [7] => Array
                (
                    [file] => /var/app/current/djtunes/core/functions/common.php
                    [line] => 126
                    [function] => logNew
                    [class] => affiliation
                    [type] => ->
                    [args] => Array
                        (
                            [0] => clicks
                            [1] => 7
                            [2] => label
                            [3] => waaga-records
                            [4] => 1
                            [5] => 
                        )

                )

            [8] => Array
                (
                    [file] => /var/app/current/djtunes/index.php
                    [line] => 651
                    [function] => spyUser
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
)