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 '-60, 60' 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 ('1267','1268','1374','1378','1379','1380','1381','1382','1383','1384','1385','1466','1596','1597','1605','1606','1649','1672','1685','1691','1695','1696','1704','1707','1712','1729','1811','1857','1868','1903','1920','1980','2008','2014','2024','2033','2055','2069','2071','2080','2081','2083','2084','2085','2086','2089','2090','2092','2093','2094','2095','2099','2100','2101','2102','2105','2106','2107','2112','2113','2114','2115','2116','2117','2118','2119','2120','2121','2122','2123','2124','2125','2126','2127','2128','2129','2130','2131','2134','2175','2258','2268','2299','2305','2356','2368','2375','2427','2434','2440','2446','2453','2458','2463','2483','2491','2496','2500','2504','2511','2512','2665','2748','2768','2774','2780','2785','2817','2818','3102','3428','3430','3440','3449','3458','3469','3477','3490','3505','3507','3510','3531','3532','3544','3546','3549','3560','3569','3583','3597','3598','3605','3606','3618','3619','3630','3633','3634','3645','3646','3686','3687','3688','3689','3690','3691','3704','3730','3731','3771','3776','3781','3786','3790','3791','3817','3818','3828','3829','3843','3847','3864','3867','3872','3873','4088','4094','4102','4155','4173','4174','4245','4246','4256','4257','4319','4324','4330','4615','4616','4619','4620','4623','4624','4625','4626','4627','4628','4629','4630','4631','4633','4634','4635','4636','4637','4638','4639','4640','4641','4642','4643','4644','4645','4646','4647','4649','4650','4651','4652','4653','4655','4656','4663','4665','4666','4667','4668','4751','4754','4755','4756','4757','4758','4767','4769','4771','4773','4777','4778','4785','4789','4790','4797','4804','4843','4853','4855','4863','4870','4873','4877','4944','4945','5000','5001','5029','5030','5034','5035','5061','5062','5119','5120','5126','5132','5138','5202','5214','5215','5252','5256','5386','5387','5447','5459','5496','5500','5504','5510','5612','5742','5749','5763','5764','5766','5767','5768','5769','5770','5771','5772','5773','5774','5780','5781','5782','5783','5784','5785','5786','5787','5788','5790','5791','5792','5793','5794','5795','5796','5798','5812','5813','5940','6191','6192','6193','6198','6199','6200','6201','6271','6272','6273','6285','6303','6304','6324','6339','6403','6419','6434','6486','6487','6488','6489','6500','6596','6599','6600','6617','6619','6643','6646','6647','6648','6649','6650','6651','7054','7066','7067','7271','7357','7365','7372','7377','7390','7400','7418','7421','7427','7468','7469','7486','7491','7560','7561','7562','7563','7644','7645','7649','7650','7651','7658','7659','7662','7663','7669','7672','7673','7675','7678','7680','7681','7697','7700','7701','7717','7910','7911','7924','8047','8111','8155','8168','8245','8254','8255','8258','8263','8284','8285','8295','8305','8312','8319','8402','8403','8404','8405','8406','8407','8408','8409','8410','8411','8412','8413','8415','8416','8423','8424','8425','8426','8427','8428','8429','8431','8436','8437','8438','8442','8445','8446','8448','8450','8451','8452','8461','8462','8463','8464','8465','8466','8766','8767','8768','8769','8770','8795','8808','8809','8813','8814','8869','8870','8879','8954','8996','9116','9139','9140','9141','9142','9143','9145','9183','9250','9266','9271','9276','9285','9292','9295') ORDER BY priority DESC, id DESC LIMIT -60, 60