MySQL said: 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 `sort`' at line 1, query was SELECT `sklep_products`.`id`, `sklep_products`.`file_pl` FROM `sklep_products_in_categories` RIGHT JOIN `sklep_products` ON `product_id` = `sklep_products`.`id` WHERE `category_id` = ORDER BY `sort`
#0  mysql_query_wrapper(SELECT `sklep_products`.`id`, `sklep_products`.`file_pl`  FROM `sklep_products_in_categories` RIGHT JOIN `sklep_products` ON `product_id` = `sklep_products`.`id` WHERE `category_id` =  ORDER BY `sort`) called at [/home/produktyx/www/panel/m/5/api/product.class.php:115]
#1  product::nearProduct2(, ) called at [/home/produktyx/www/php_inc/controlers/sklep_produkt.php:85]
#2  require_once(/home/produktyx/www/php_inc/controlers/sklep_produkt.php) called at [/home/produktyx/www/php_inc/cms.php:293]
#3  include(/home/produktyx/www/php_inc/cms.php) called at [/home/produktyx/www/index.php:2]