Slim Application Error

The application could not run because of the following error:

Details

Type: RedBean_Exception_SQL
Message: 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 ''-20', 20 -- keep-cache' at line 1
File: /home/ofertasemprego/public_html/models/rb.php
Line: 267

Trace

#0 /home/ofertasemprego/public_html/models/rb.php(392): RedBean_Driver_PDO->runQuery('SELECT * FROM `...', Array)
#1 /home/ofertasemprego/public_html/models/rb.php(2242): RedBean_Driver_PDO->GetAll('SELECT * FROM `...', Array)
#2 /home/ofertasemprego/public_html/models/rb.php(3280): RedBean_Adapter_DBAdapter->get('SELECT * FROM `...', Array)
#3 /home/ofertasemprego/public_html/models/rb.php(6000): RedBean_QueryWriter_AQueryWriter->queryRecord('jobs', Array, ' status=1 AND c...', Array)
#4 /home/ofertasemprego/public_html/models/rb.php(8723): RedBean_OODB->find('jobs', Array, ' status=1 AND c...', Array)
#5 /home/ofertasemprego/public_html/models/rb.php(9650): RedBean_Finder->find('jobs', ' status=1 AND c...', Array)
#6 /home/ofertasemprego/public_html/models/Categories.php(30): RedBean_Facade::findAll('jobs', ' status=1 AND c...', Array)
#7 /home/ofertasemprego/public_html/controllers/categories.php(34): Categories->findCategoryJobs(-20, 20)
#8 [internal function]: {closure}('8', 'comercial-venda...', 'cursos-de-forma...')
#9 /home/ofertasemprego/public_html/Slim/Route.php(436): call_user_func_array(Object(Closure), Array)
#10 /home/ofertasemprego/public_html/Slim/Slim.php(1307): Slim\Route->dispatch()
#11 /home/ofertasemprego/public_html/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#12 /home/ofertasemprego/public_html/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#13 /home/ofertasemprego/public_html/Slim/Extras/Middleware/CsrfGuard.php(51): Slim\Middleware\MethodOverride->call()
#14 /home/ofertasemprego/public_html/Slim/Middleware/PrettyExceptions.php(67): Slim\Extras\Middleware\CsrfGuard->call()
#15 /home/ofertasemprego/public_html/Slim/Slim.php(1254): Slim\Middleware\PrettyExceptions->call()
#16 /home/ofertasemprego/public_html/index.php(79): Slim\Slim->run()
#17 {main}