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 'and set_isset=1 and fk =' at line 1 select * from shop1_products where fk_producer= and set_isset=1 and fk =

1.
Db -> post ( select * from shop1_products where fk_producer= and set_isset=1 and fk =, )
/home/dveriopt/public_html/core/classes/db.class.php (Line: 103)

2.
Db -> query ( select * from shop1_products where fk_producer= and set_isset=1 and fk = )
/home/dveriopt/public_html/application/models/products.model.php (Line: 338)

3.
ProductsModel :: getByFkProducer ( , )
/home/dveriopt/public_html/application/controllers/product.php (Line: 13)

4.
ProductController -> index ( )
/home/dveriopt/public_html/core/classes/dispatcher.class.php (Line: 35)

5.
Dispatcher -> process ( Array, Array )
/home/dveriopt/public_html/index.php (Line: 7)