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 '-10,10' at line 1

MYSQL QUERY ERROR: «SELECT SQL_CALC_FOUND_ROWS p.id,p.url link,p.title,p.img mainImage, p.quantity, p.availability, p.short_descr text1,p.price,p.oldPrice,p.flags isNew FROM goods p LEFT JOIN firms_category fc ON fc.brand_id=p.firm AND fc.category_id=p.page WHERE p.active=1 AND p.firm=107 ORDER BY fc.sort DESC, p.ord DESC LIMIT -10,10»

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /var/www/protehnology/data/www/protehnology.ru/core/Mysql.php:62 Stack trace: #0 /var/www/protehnology/data/www/protehnology.ru/model/Product.php(152): core\Mysql->fetchAssoc() #1 /var/www/protehnology/data/www/protehnology.ru/controller/ProducerController.php(50): model\Product::getListByFilter(Array, 'brandCategory', 10) #2 /var/www/protehnology/data/www/protehnology.ru/core/core.php(608): controller\ProducerController->actionProducts() #3 /var/www/protehnology/data/www/protehnology.ru/index.php(215): core\runApplication(Array) #4 {main} thrown in /var/www/protehnology/data/www/protehnology.ru/core/Mysql.php on line 62