CLASS.DB OUTPUT:
ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-15, 15' at line 16
CLASS.DB OUTPUT:
QUERY:
SELECT 
				t1.*,
				t1.id as product_id,
				t2.brand_name, 
				t2.brand_website, 
				t3.unit_name,
				DATE_FORMAT(t1.created, '%d.%m.%Y') as created2,
				IF(t1.name_et != '', t1.name_et, t1.name_et) as name,
				IF(t1.description_et != '', t1.description_et, t1.description_et) as description,
				IF(t1.url_code_et != '', t1.url_code_et, t1.url_code_et) as url_code,
				IF(price_discount > 0 AND price_discount < price, price_discount, price) as current_price,
				IF(price_discount > 0 AND price_discount < price, 1, 0) as is_discounted,
				(SELECT fk_category_id FROM mdl_shop_product_category WHERE fk_product_id = t1.id ORDER BY fk_category_id DESC LIMIT 1) as main_cat_id,
				(SELECT COUNT(*) FROM mdl_shop_product_files WHERE type='image' AND fk_product_id = t1.id LIMIT 1) as images_count FROM mdl_shop_products AS t1
			LEFT JOIN mdl_shop_brands AS t2 ON t1.fk_brand_id = t2.id
			LEFT JOIN mdl_shop_units AS t3 ON t1.fk_unit_id = t3.id WHERE t1.active = 1 AND t1.deleted = 0 AND name_et != '' AND t1.id IN ('9','10','11','12','14','15','16','17','18','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','57','58','59','60','62','63','64','65','66','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','97','98','99','100','101','103','104','105','106','108','109','110','111','112','113','115','116','117','118','119','120','121','122','123','124','125','126','127','128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','154','155','156','157','158','159','160','161','162','163','164','165','166','167','168','169','170','171','172','173','174','175','176','177','178','179','180','181','187','188','189','190','191','192','193','194','195','196','197','198','199','201','202','203','204','205','206','207','208','209','210','211','212','213','214','216','217','218','219','220','221','222','223','224','225','226','227','228','229','230','231','232','233') AND t1.id IN ('9','10','11','15','16','17','18','14','12','20','21','22','128','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','57','55','58','59','60','62','63','64','65','66','68','69','70','71','78','79','80','81','88','89','90','92','93','94','95','99','103','104','105','106','108','109','110','111','112','113','115','116','117','118','119','120','121','122','123','124','125','126','129','130','131','132','133','135','136','138','139','140','141','142','154','155','156','157','158','159','162','163','164','165','166','168','171','172','179','175','176','177','178','180','181','187','188','189','190','191','192','193','195','196','198','199','201','202','203','204','205','206','207','208','210','211','213','214','216','217','219','220','221','222','224','225','226','227','228','229','230','231','232','233') ORDER BY priority DESC LIMIT -15, 15
File: /home/trekkene/domains/trekken.ee/public_html/engine/include/db.php
Line: 818
Function: query
Class: Db

File: /home/trekkene/domains/trekken.ee/public_html/modules/shop/include/products.site.php
Line: 476
Function: fetchAll
Class: Db

File: /home/trekkene/domains/trekken.ee/public_html/modules/shop/include/products.site/list.products.php
Line: 67
Function: loadProducts
Class: Products_site

File: /home/trekkene/domains/trekken.ee/public_html/modules/shop/include/products.site.php
Line: 103
Function: content
Class: List_products

File: /home/trekkene/domains/trekken.ee/public_html/modules/shop/module.shop.php
Line: 390
Function: content
Class: Products_site