Syntax error, unexpected token ORDER, near to ' BY _stock desc,FIELD(_status, 2, 1, 3) ,_update_at desc LIMIT :APL0: OFFSET :APL1:', when parsing: SELECT [Product].* FROM [Product] WHERE _published = 1 AND _category_id IN ("33","87","550","551","88","549","220","552","553","554","433","555","556","557","558","518") AND _percentage > 0 AND _gift IS NOT NULL AND _brand_id = ORDER BY _stock desc,FIELD(_status, 2, 1, 3) ,_update_at desc LIMIT :APL0: OFFSET :APL1: (321)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /home/fitgear/public_html/app/models/Product.php(209): Phalcon\Mvc\Model::find(Array)
#3 /home/fitgear/public_html/app/controllers/ProductController.php(302): Product::find(Array)
#4 [internal function]: ProductController->indexAction(Array)
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(ProductController), 'indexAction', Array)
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /home/fitgear/public_html/index.php(41): Phalcon\Mvc\Application->handle()
#8 {main}