Slim Application Error

The application could not run because of the following error:

Details

Type: ActiveRecord\DatabaseException
Message: 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 1 in /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Connection.php:333 Stack trace: #0 /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Connection.php(333): PDOStatement->execute(NULL) #1 /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Table.php(237): ActiveRecord\Connection->query('SELECT * FROM ...', NULL) #2 /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Model.php(1700): ActiveRecord\Table->find_by_sql('SELECT * FROM ...', NULL, true) #3 /home/textify/domains/formalni.pl/public_html/src/controllers/RouteController.php(20): ActiveRecord\Model::find_by_sql('SELECT * FROM ...') #4 [internal function]: RouteController->articleView(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #5 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #6 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #7 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #9 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #10 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #11 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #12 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #13 /home/textify/domains/formalni.pl/public_html/web/index.php(19): Slim\App->run() #14 {main}
File: /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Connection.php
Line: 336

Trace

#0 /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Table.php(237): ActiveRecord\Connection->query('SELECT  * FROM ...', NULL)
#1 /home/textify/domains/formalni.pl/public_html/vendor/php-activerecord/php-activerecord/lib/Model.php(1700): ActiveRecord\Table->find_by_sql('SELECT  * FROM ...', NULL, true)
#2 /home/textify/domains/formalni.pl/public_html/src/controllers/RouteController.php(20): ActiveRecord\Model::find_by_sql('SELECT  * FROM ...')
#3 [internal function]: RouteController->articleView(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#6 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /home/textify/domains/formalni.pl/public_html/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 /home/textify/domains/formalni.pl/public_html/web/index.php(19): Slim\App->run()
#13 {main}