An uncaught Exception was encountered

Type: mysqli_sql_exception

Message: 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 's Discount' LIMIT 1' at line 1

Filename: /var/www/172-105-53-213.ip.linodeusercontent.com/public_html/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /var/www/172-105-53-213.ip.linodeusercontent.com/public_html/application/models/Competition_model.php
Line: 399
Function: query

File: /var/www/172-105-53-213.ip.linodeusercontent.com/public_html/application/controllers/Competition.php
Line: 512
Function: getCompetitonListing

File: /var/www/172-105-53-213.ip.linodeusercontent.com/public_html/index.php
Line: 315
Function: require_once