Fatal error: Uncaught 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 '-24' at line 1 in /home/ndrive321/domains/naughtydrive.com/public_html/app/models/listingmodel.php:138
Stack trace:
#0 /home/ndrive321/domains/naughtydrive.com/public_html/app/models/listingmodel.php(138): PDO->prepare()
#1 /home/ndrive321/domains/naughtydrive.com/public_html/app/controllers/controller-listing.php(7): ListingModel->runQuery()
#2 /home/ndrive321/domains/naughtydrive.com/public_html/app/core/controller.php(104): require('/home/ndrive321...')
#3 /home/ndrive321/domains/naughtydrive.com/public_html/app/core/app.php(47): Controller->listing()
#4 /home/ndrive321/domains/naughtydrive.com/public_html/index.php(8): App->__construct()
#5 {main}
thrown in /home/ndrive321/domains/naughtydrive.com/public_html/app/models/listingmodel.php on line 138