System error: Cannot perfom SQL query: SELECT * FROM material_producer p WHERE p.is_active = 1 AND( SELECT COUNT(m.id) FROM material m WHERE m.producer_id = p.id ) > 0 LIMIT 240, -12 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 '-12' at line 15

on line 3 of file /home/garfield/public_html/index.php
on line 51 of file /home/garfield/public_html/includes/Router.php
on line 17 of file /home/garfield/public_html/includes/Classes/CatalogProducerPage.php
on line 173 of file /home/garfield/public_html/includes/Classes/Base/HTMLPage.php
on line 13 of file /home/garfield/public_html/includes/Classes/CatalogProducerPage.php
on line 37 of file /home/garfield/public_html/includes/Classes/CatalogProducerPage.php
on line 193 of file /home/garfield/public_html/includes/Components/Producer.php
on line 276 of file /home/garfield/public_html/includes/Components/Base/DataBase/DataBase.php
on line 194 of file /home/garfield/public_html/includes/Components/Base/DataBase/MySQL.php