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 ') order by name' at line 1 select * from fo_products where fk in () order by name;

1.
Db -> post ( select * from fo_products where fk in () order by name;, )
/home/smartpro/public_html/core/classes/db.class.php (Line: 105)

2.
Db -> query ( select * from fo_products where fk in () order by name; )
/home/smartpro/public_html/application/models/products.model.php (Line: 28)

3.
ProductsModel :: getByIn ( )
/home/smartpro/public_html/application/controllers/catalog.php (Line: 23)

4.
CatalogController -> index ( )
(Line: )

5.
call_user_func_array ( Array, Array )
/home/smartpro/public_html/core/classes/dispatcher.class.php (Line: 35)

6.
Dispatcher -> process ( )
/home/smartpro/public_html/index.php (Line: 7)