object(PDOException)#687 (8) {
  ["message":protected]=>
  string(205) "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 4"
  ["string":"Exception":private]=>
  string(2124) "PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 4 in /home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php:505
Stack trace:
#0 /home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php(505): PDOStatement->execute(Array)
#1 /home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php(477): App\Src\Dbal\QueryBuilder->statement(Object(App\Src\Dbal\Query))
#2 /home/wgregorybell/public_html/phpls/app/Src/Orm/Query.php(160): App\Src\Dbal\QueryBuilder->fetchObject(Array, 'App\\Models\\Invo...', Array)
#3 /home/wgregorybell/public_html/phpls/app/Src/Orm/Relations/Relation.php(106): App\Src\Orm\Query->first()
#4 /home/wgregorybell/public_html/phpls/app/Src/Orm/Relations/BelongsTo.php(148): App\Src\Orm\Relations\Relation->__call('first', Array)
#5 /home/wgregorybell/public_html/phpls/app/Src/Orm/Query.php(200): App\Src\Orm\Relations\BelongsTo->load('invoice', Object(App\Models\Order))
#6 /home/wgregorybell/public_html/phpls/app/Src/Orm/Model.php(447): App\Src\Orm\Query->eagerLoadRelation(Object(App\Models\Order), 'invoice')
#7 /home/wgregorybell/public_html/phpls/app/Src/Support/BaseCollection.php(178): App\Src\Orm\Model->offsetGet('invoice')
#8 /home/wgregorybell/public_html/phpls/app/Models/Order.php(195): App\Src\Support\BaseCollection->__get('invoice')
#9 /home/wgregorybell/public_html/phpls/app/Models/Listing.php(900): App\Models\Order->deactivate()
#10 /home/wgregorybell/public_html/phpls/app/Controllers/Index.php(22): App\Models\Listing->delete()
#11 /home/wgregorybell/public_html/phpls/app/Src/Mvc/BaseController.php(20): App\Controllers\Index->actionRouter(Array)
#12 /home/wgregorybell/public_html/phpls/app/Src/Application.php(184): App\Src\Mvc\BaseController->action('Router', Array)
#13 /home/wgregorybell/public_html/phpls/app/Src/Application.php(149): App\Src\Application->dispatch('Index/Router', Array)
#14 /home/wgregorybell/public_html/index.php(23): App\Src\Application->execute()
#15 {main}"
  ["code":protected]=>
  string(5) "42000"
  ["file":protected]=>
  string(66) "/home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php"
  ["line":protected]=>
  int(505)
  ["trace":"Exception":private]=>
  array(15) {
    [0]=>
    array(6) {
      ["file"]=>
      string(66) "/home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php"
      ["line"]=>
      int(505)
      ["function"]=>
      string(7) "execute"
      ["class"]=>
      string(12) "PDOStatement"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        array(0) {
        }
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(66) "/home/wgregorybell/public_html/phpls/app/Src/Dbal/QueryBuilder.php"
      ["line"]=>
      int(477)
      ["function"]=>
      string(9) "statement"
      ["class"]=>
      string(25) "App\Src\Dbal\QueryBuilder"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        object(App\Src\Dbal\Query)#689 (2) {
          ["sql"]=>
          string(71) "SELECT
phpls_invoices.*
FROM phpls_invoices
WHERE phpls_invoices.id = ?"
          ["parameters"]=>
          array(0) {
          }
        }
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(58) "/home/wgregorybell/public_html/phpls/app/Src/Orm/Query.php"
      ["line"]=>
      int(160)
      ["function"]=>
      string(11) "fetchObject"
      ["class"]=>
      string(25) "App\Src\Dbal\QueryBuilder"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        array(1) {
          [0]=>
          string(16) "phpls_invoices.*"
        }
        [1]=>
        string(18) "App\Models\Invoice"
        [2]=>
        array(2) {
          [0]=>
          array(0) {
          }
          [1]=>
          bool(true)
        }
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(71) "/home/wgregorybell/public_html/phpls/app/Src/Orm/Relations/Relation.php"
      ["line"]=>
      int(106)
      ["function"]=>
      string(5) "first"
      ["class"]=>
      string(17) "App\Src\Orm\Query"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [4]=>
    array(6) {
      ["file"]=>
      string(72) "/home/wgregorybell/public_html/phpls/app/Src/Orm/Relations/BelongsTo.php"
      ["line"]=>
      int(148)
      ["function"]=>
      string(6) "__call"
      ["class"]=>
      string(30) "App\Src\Orm\Relations\Relation"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        string(5) "first"
        [1]=>
        array(0) {
        }
      }
    }
    [5]=>
    array(6) {
      ["file"]=>
      string(58) "/home/wgregorybell/public_html/phpls/app/Src/Orm/Query.php"
      ["line"]=>
      int(200)
      ["function"]=>
      string(4) "load"
      ["class"]=>
      string(31) "App\Src\Orm\Relations\BelongsTo"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        string(7) "invoice"
        [1]=>
        object(App\Models\Order)#695 (13) {
          ["items":protected]=>
          array(18) {
            ["id"]=>
            int(435)
            ["user_id"]=>
            int(2)
            ["listing_id"]=>
            int(459)
            ["invoice_id"]=>
            NULL
            ["status"]=>
            NULL
            ["pricing_id"]=>
            int(4)
            ["discount_id"]=>
            NULL
            ["subscription_id"]=>
            NULL
            ["period"]=>
            string(1) "Y"
            ["period_count"]=>
            int(1)
            ["price"]=>
            string(6) "249.00"
            ["start_datetime"]=>
            NULL
            ["end_datetime"]=>
            NULL
            ["sync_pricing"]=>
            NULL
            ["notification_1_sent"]=>
            NULL
            ["notification_2_sent"]=>
            int(1)
            ["notification_3_sent"]=>
            int(1)
            ["cancellable"]=>
            NULL
          }
          ["table":protected]=>
          string(6) "orders"
          ["query":protected]=>
          NULL
          ["primaryKey":protected]=>
          string(2) "id"
          ["incrementing":protected]=>
          bool(true)
          ["relations":protected]=>
          array(0) {
          }
          ["fillable":protected]=>
          array(0) {
          }
          ["guarded":protected]=>
          array(0) {
          }
          ["searchable":protected]=>
          array(0) {
          }
          ["sortable":protected]=>
          array(0) {
          }
          ["translatable":protected]=>
          array(0) {
          }
          ["exists":protected]=>
          bool(true)
          ["dirty":protected]=>
          array(0) {
          }
        }
      }
    }
    [6]=>
    array(6) {
      ["file"]=>
      string(58) "/home/wgregorybell/public_html/phpls/app/Src/Orm/Model.php"
      ["line"]=>
      int(447)
      ["function"]=>
      string(17) "eagerLoadRelation"
      ["class"]=>
      string(17) "App\Src\Orm\Query"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        object(App\Models\Order)#695 (13) {
          ["items":protected]=>
          array(18) {
            ["id"]=>
            int(435)
            ["user_id"]=>
            int(2)
            ["listing_id"]=>
            int(459)
            ["invoice_id"]=>
            NULL
            ["status"]=>
            NULL
            ["pricing_id"]=>
            int(4)
            ["discount_id"]=>
            NULL
            ["subscription_id"]=>
            NULL
            ["period"]=>
            string(1) "Y"
            ["period_count"]=>
            int(1)
            ["price"]=>
            string(6) "249.00"
            ["start_datetime"]=>
            NULL
            ["end_datetime"]=>
            NULL
            ["sync_pricing"]=>
            NULL
            ["notification_1_sent"]=>
            NULL
            ["notification_2_sent"]=>
            int(1)
            ["notification_3_sent"]=>
            int(1)
            ["cancellable"]=>
            NULL
          }
          ["table":protected]=>
          string(6) "orders"
          ["query":protected]=>
          NULL
          ["primaryKey":protected]=>
          string(2) "id"
          ["incrementing":protected]=>
          bool(true)
          ["relations":protected]=>
          array(0) {
          }
          ["fillable":protected]=>
          array(0) {
          }
          ["guarded":protected]=>
          array(0) {
          }
          ["searchable":protected]=>
          array(0) {
          }
          ["sortable":protected]=>
          array(0) {
          }
          ["translatable":protected]=>
          array(0) {
          }
          ["exists":protected]=>
          bool(true)
          ["dirty":protected]=>
          array(0) {
          }
        }
        [1]=>
        string(7) "invoice"
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(71) "/home/wgregorybell/public_html/phpls/app/Src/Support/BaseCollection.php"
      ["line"]=>
      int(178)
      ["function"]=>
      string(9) "offsetGet"
      ["class"]=>
      string(17) "App\Src\Orm\Model"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(7) "invoice"
      }
    }
    [8]=>
    array(6) {
      ["file"]=>
      string(57) "/home/wgregorybell/public_html/phpls/app/Models/Order.php"
      ["line"]=>
      int(195)
      ["function"]=>
      string(5) "__get"
      ["class"]=>
      string(30) "App\Src\Support\BaseCollection"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(7) "invoice"
      }
    }
    [9]=>
    array(6) {
      ["file"]=>
      string(59) "/home/wgregorybell/public_html/phpls/app/Models/Listing.php"
      ["line"]=>
      int(900)
      ["function"]=>
      string(10) "deactivate"
      ["class"]=>
      string(16) "App\Models\Order"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [10]=>
    array(6) {
      ["file"]=>
      string(62) "/home/wgregorybell/public_html/phpls/app/Controllers/Index.php"
      ["line"]=>
      int(22)
      ["function"]=>
      string(6) "delete"
      ["class"]=>
      string(18) "App\Models\Listing"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [11]=>
    array(6) {
      ["file"]=>
      string(67) "/home/wgregorybell/public_html/phpls/app/Src/Mvc/BaseController.php"
      ["line"]=>
      int(20)
      ["function"]=>
      string(12) "actionRouter"
      ["class"]=>
      string(21) "App\Controllers\Index"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        array(3) {
          ["slug"]=>
          string(17) "business-listings"
          ["first"]=>
          string(46) "food-dining-captain-georges-seafood-restaurant"
          ["second"]=>
          string(12) "send-message"
        }
      }
    }
    [12]=>
    array(6) {
      ["file"]=>
      string(60) "/home/wgregorybell/public_html/phpls/app/Src/Application.php"
      ["line"]=>
      int(184)
      ["function"]=>
      string(6) "action"
      ["class"]=>
      string(26) "App\Src\Mvc\BaseController"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        string(6) "Router"
        [1]=>
        array(3) {
          ["slug"]=>
          string(17) "business-listings"
          ["first"]=>
          string(46) "food-dining-captain-georges-seafood-restaurant"
          ["second"]=>
          string(12) "send-message"
        }
      }
    }
    [13]=>
    array(6) {
      ["file"]=>
      string(60) "/home/wgregorybell/public_html/phpls/app/Src/Application.php"
      ["line"]=>
      int(149)
      ["function"]=>
      string(8) "dispatch"
      ["class"]=>
      string(19) "App\Src\Application"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        string(12) "Index/Router"
        [1]=>
        array(3) {
          ["slug"]=>
          string(17) "business-listings"
          ["first"]=>
          string(46) "food-dining-captain-georges-seafood-restaurant"
          ["second"]=>
          string(12) "send-message"
        }
      }
    }
    [14]=>
    array(6) {
      ["file"]=>
      string(40) "/home/wgregorybell/public_html/index.php"
      ["line"]=>
      int(23)
      ["function"]=>
      string(7) "execute"
      ["class"]=>
      string(19) "App\Src\Application"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
  ["errorInfo"]=>
  array(3) {
    [0]=>
    string(5) "42000"
    [1]=>
    int(1064)
    [2]=>
    string(149) "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 4"
  }
}