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 ('1220','1221','1222','1246','1250','1273','1274','1275','1285','1287','1294','1345','1346','1355','1363','1373','1375','1376','1377','1394','1395','1404','1405','1407','1430','1453','1511','1537','1649','1650','1727','1753','1791','1792','1805','1806','1809','2164','2177','2213','2363','2366','2407','2528','2531','2668','2669','2671','2674','2675','2691','2695','2696','2697','2721','2725','2745','2749','2751','2756','2764','2796','2808','2817','2824','2825','2827','2828','2831','2832','2901','2904','2940','2958','2959','2960','2961','2962','2963','2964','2965','2966','2972','2976','2994','2995','2996','2997','3005','3006','3007','3008','3009','3010','3011','3013','3014','3015','3017','3018','3019','3021','3023','3042','3068','3078','3186','3188','3191','3192','3201','3203','3204','3205','3244','3273','3277','3281','3288','3295','3296','3299','3300','3302','3311','3318','3321','3323','3329','3331','3333','3928','3953','4059','4807','4809','4810','5326','5373','5377','5380','5381','5384','5385','5398','5400','5402','5483','6048','6049','6050','6051','6053','6054','6055','6056','6058','6060','6061','6062','6063','6068','6070','6071','6072','6073','6074','6075','6076','6078','6079','6081','6082','6083','6091','6093','6094','6096','6097','6098','6099','6100','6101','6102','6104','6106','6107','6108','6109','6113','6114','6115','6117','6118','6119','6121','6122','6123','6124','6125','6129','6131','6135','6137','6138','6141','6142','6144','6145','6146','6148','6149','6151','6152','6156','6157','6159','6160','6161','6162','6163','6164','6165','6166','6167','6168','6171','6172','6174','6175','6176','6177','6178','6179','6180','6181','6182','6183','6184','6185','6186','6188','6189','6192','6194','6195','6196','6197','6200','6201','6202','6203','6204','6206','6207','6208','6212','6215','6233','6234','6243','6245','6246','6499','6921','6922','7708','7709','7710','7711','7712','8128','8129','8130','8131','8134','8749','8753','8757','8760','8761','8762','8764','8837','8839','8840','8841','8844','8845','8846','8847','8851','8852','8853','8854','8856','8861','8950','8951','8970','9009','9010','9011','9012','9013','9014','9015','9022','9023','9024','9025','9026','9027','9028','9029','9030','9031','9032','9035','9037','9039','9040','9042','9043','9048','9049','9050','9052','9053','9054','9055','9056','9057','9059','9060','9061','9062','9063','9064','9065','9066','9068','9069','9070','9073','9074','9075','9076','9077','9078','9079','9080','9081','9084','9085','9090','9092','9093','9095','9096','9097','9098','9099','9100','9102','9105','9106','9111','9112','9114','9115','9116','9117','9118','9120','9121','9122','9124','9127','9129','9130','9131','9132','9133','9134','9135','9138','9140','9142','9143','9149','9150','9151','9152','9176','9177','9178','9179','9296','9297','9298','9299','9343','9363','9367','9368','9370','9410','9447','9451','9452','9453','9454','9475','9490','9491','9617','9618','9619','9622','9623','9624','9625','9626','9627','9628','9629','9631','9632','9634','9635','9636','9637','9639','9765','9766','9793','9798','9810','9811','9829','9833','9836','9846','9847','9904','9909','9917','9924','9925','9929','9948','10128','10130','10132','10142','10167','10234','10249','10250','10256','10280','10299','10308','10309','10343','10661','10703','10852','10895','11032','11034','11035','11037','11039','11343','11344','11345','11346','11347','11429','11654','11655','11663','11664','11665','11666','11669','11672','11673','11674','11675','11676','11677','11678','11679','11681','11683','11684','11685','11686','11687','11688','11689','11690','11691','11692','11693','11694','11695','11696','11697','11698','11699','11700','11702','11703','11704','11706','11707','11710','11722','11723','11736','11737','11739','11740','11754','11756','11759','11764','11765','11766','11767','11773','11781','11782','11783','11839','11840','11842','11862','11885','11895','11911','11912','11913','11914','11915','11916','11917','11918','11920','11922','11937','11938','11939','11940','12038','12039','12040','12041','12042','12043','12044','12049','12050','12051','12052','12053','12054') ORDER BY priority DESC, id DESC LIMIT -60, 60