Syntax error, unexpected token AND, near to ' fk_id_status = 1 ORDER BY destaque DESC, ordem', when parsing: SELECT [App\Models\TbCarretas].* FROM [App\Models\TbCarretas] WHERE fk_id_categoria = AND fk_id_status = 1 ORDER BY destaque DESC, ordem (137)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse() #1 [internal function]: Phalcon\Mvc\Model\Query->execute() #2 /home/coopercred/webapps/coopercred/app/models/TbCarretas.php(156): Phalcon\Mvc\Model::find(Array) #3 /home/coopercred/webapps/coopercred/app/controllers/CarretasController.php(71): App\Models\TbCarretas::find(Array) #4 [internal function]: CarretasController->indexAction('baus') #5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(CarretasController), 'indexAction', Array) #6 [internal function]: Phalcon\Dispatcher->dispatch() #7 /home/coopercred/webapps/coopercred/public/index.php(61): Phalcon\Mvc\Application->handle() #8 {main}