MySQL error: 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 '-1,1' at line 6
Query: SELECT goods_tree.id FROM `goods_tree`, `goods`
WHERE goods_tree.goods_id=goods.id
AND goods.path="89"
AND (goods_tree.domens_id="0" OR goods_tree.domens_id=0)
AND (goods.domens_id="0" OR goods.domens_id=0)
ORDER BY goods_tree.id limit -1,1 Backtrace: Method "process" called in file "/var/www/apeks/docs/classes/indexClass.php5" on line 36
Method "fillMainPartTag" called in file "/var/www/apeks/docs/classes/indexClass.php5" on line 15
Method "process" called in file "/var/www/apeks/docs/classes/systemClass.php5" on line 54
Method "processArgs" called in file "/var/www/apeks/docs/classes/systemClass.php5" on line 37
Method "process" called in file "/var/www/apeks/docs/index.php5" on line 26