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 'or (sort= and name>'')) order by sort, name' at line 1
select p.* from fo_products p join fo_products2categories pc on (p.id = pc.fk_product) where pc.fk_category='3' and (sort> or (sort= and name>'')) order by sort, name
1.
Db -> post ( select p.* from fo_products p join fo_products2categories pc on (p.id = pc.fk_product) where pc.fk_category='3' and (sort> or (sort= and name>'')) order by sort, name, )
/home/sternby/www/stern.by/core/classes/db.class.php (Line: 105)
2.
Db -> query ( select p.* from fo_products p join fo_products2categories pc on (p.id = pc.fk_product) where pc.fk_category='3' and (sort> or (sort= and name>'')) order by sort, name )
/home/sternby/www/stern.by/application/controllers/index.php (Line: 380)
3.
IndexController -> catalog3 ( )
(Line: )
4.
call_user_func_array ( Array, Array )
/home/sternby/www/stern.by/core/classes/dispatcher.class.php (Line: 35)
5.
Dispatcher -> process ( )
/home/sternby/www/stern.by/index.php (Line: 19)