Slim Application Error

The application could not run because of the following error:

Details

Type: PDOException
Code: 42000
Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND STATUS = 1 ORDER BY CASE WHEN Extra = 1 THEN DateAdded END DESC, CASE WHEN' at line 1
File: /home1/vocopro/public_html/Models/products_model.php
Line: 241

Trace

#0 /home1/vocopro/public_html/Models/products_model.php(241): PDOStatement->execute(NULL)
#1 /home1/vocopro/public_html/Controllers/products_controller.php(46): ProductsModel->getProducts('products_disc.p...', NULL)
#2 /home1/vocopro/public_html/index.php(248): ProductsController->getProducts('products_disc.p...')
#3 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /home1/vocopro/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 /home1/vocopro/public_html/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#6 /home1/vocopro/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /home1/vocopro/public_html/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /home1/vocopro/public_html/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home1/vocopro/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /home1/vocopro/public_html/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /home1/vocopro/public_html/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 /home1/vocopro/public_html/index.php(694): Slim\App->run()
#13 {main}