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 ('1288','1289','1290','1291','1292','1293','1305','1306','1307','1406','1407','1409','1410','1411','1414','1415','1422','1423','1424','1428','1432','1433','1434','1435','1436','1437','1438','1439','1440','1441','1442','1443','1445','1446','1447','1448','1460','1461','1462','1463','1475','1476','1477','1504','1505','1506','1507','1508','1509','1510','1511','1512','1513','1514','1515','1516','1519','1520','1521','1522','1523','1524','1525','1526','1527','1528','1529','1530','1531','1532','1539','1541','1542','1543','1544','1545','1546','1547','1548','1549','1740','1741','1742','1743','1753','1754','1779','1780','1781','1782','1787','1788','1789','1790','1791','1792','1795','1796','1819','1820','1821','1822','1830','1841','1842','2009','2010','2222','2279','2280','2281','2283','2285','2286','2312','2313','2314','2350','2353','2372','2391','2392','2393','2394','2398','2430','2513','2514','2515','2516','2517','2518','2519','2520','2521','2522','2523','2524','2525','2526','2527','2544','2545','2549','2550','2580','2581','2582','2583','2584','2585','2586','2587','2588','2589','2590','2591','2592','2593','2596','2597','2598','2599','2839','2842','2845','2848','2851','2855','2856','2860','2863','2866','2869','2872','2876','2878','2882','2883','2886','2887','2890','2891','2894','2897','2900','2903','2906','2907','2910','2911','2912','2917','2918','3055','3097','3098','3099','3100','3106','3107','3109','3110','3112','3113','3115','3116','3117','3118','3119','3120','3121','3122','3138','3139','3140','3141','3142','3143','3144','3145','3146','3147','3148','3149','3156','3188','3189','3190','4351','4352','4353','4354','4355','4356','4357','4358','4359','4360','4361','4363','4364','4365','4366','4367','4368','4369','4370','4371','4372','4373','4374','4375','4378','4379','4380','4381','4382','4383','4384','4385','4386','4387','4388','4389','4390','4391','4392','4393','4394','4395','4396','4397','4398','4399','4400','4402','4404','4405','4406','4407','4408','4409','4410','4411','4412','4413','4414','4415','4438','4439','4440','4441','4442','4443','4444','4445','4446','4447','4448','4452','4453','4454','4455','4456','4457','4468','4469','4470','4471','4472','4473','4474','4475','4476','4477','4478','4479','4480','4481','4482','4483','4484','4485','4486','4487','4488','4490','4491','4493','4494','4496','4497','4498','4499','4500','4501','4502','4503','4504','4505','4506','4507','4508','4509','4511','4512','4513','4514','4515','4516','4517','4518','4519','4520','4603','4604','4605','4606','4607','4608','4609','4610','4611','4884','4885','4886','4891','4892','4893','4898','4899','4900','5002','5003','5004','5005','5006','5007','5008','5009','5010','5011','5016','5017','5018','5038','5204','5206','5207','5208','5209','5210','5213','5230','5231','5232','5233','5234','5235','5236','5237','5238','5239','5240','5241','5260','5261','5274','5275','5276','5277','5278','5279','5635','5636','5637','5638','5639','5640','5641','5642','5643','5644','5645','5646','5647','5648','5649','5650','5651','5652','5653','5654','5655','5656','5657','5659','5660','6096','6160','6167','6168','6169','6170','6171','6173','6184','6185','6186','6187','6190','6235','6236','6237','6238','6240','6241','6278','6279','6288','6289','6305','6306','6382','6383','6388','6417','6418','6528','6529','6605','6606','6607','6608','8119','8120','8132','8133','8370','8371','8372','8390','8391','8567','8568','8569','8570','8571','8572','8573','8574','8575','8576','8577','8578','8579','8580','8581','8582','8583','8584','8585','8586','8587','8588','8589','8590','8977','8979','8980','9035','9036','9039','9040','9104','9105','9106','9107','9108','9109','9110','9111','9112','9113','9114','9115','9131','9132','9133','9134','9135','9136','9137','9138') ORDER BY priority DESC, id DESC LIMIT -60, 60