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 ('13','1220','1221','1222','1246','1250','1273','1274','1285','1287','1294','1345','1346','1355','1363','1373','1375','1376','1377','1394','1395','1404','1405','1407','1430','1453','1537','1649','1650','1727','1753','1791','1792','1805','1806','1809','2164','2363','2407','2528','2531','2668','2669','2671','2674','2675','2691','2721','2725','2745','2764','2808','2817','2824','2825','2831','2832','2901','2940','2960','2961','2963','2964','2965','2966','2968','2972','2976','2977','2995','2996','2997','3005','3006','3007','3008','3009','3011','3014','3015','3017','3018','3019','3021','3023','3042','3068','3078','3186','3201','3203','3204','3205','3244','3273','3281','3295','3296','3299','3300','3302','3308','3318','3319','3321','3328','3329','3332','3337','3339','3348','3530','3610','3675','3953','4807','4809','4810','4836','4838','4841','5369','5373','5377','5384','5385','5394','5398','5400','5401','6048','6049','6050','6051','6053','6054','6055','6058','6060','6061','6062','6063','6066','6067','6068','6070','6071','6072','6073','6074','6078','6079','6081','6082','6083','6087','6089','6090','6091','6092','6093','6094','6095','6096','6097','6098','6099','6100','6101','6102','6103','6104','6106','6107','6108','6109','6113','6114','6115','6117','6118','6119','6121','6122','6123','6124','6125','6129','6131','6133','6135','6137','6142','6143','6144','6145','6146','6149','6151','6152','6154','6156','6157','6159','6160','6161','6162','6163','6164','6165','6166','6167','6168','6170','6171','6172','6174','6175','6176','6177','6178','6179','6180','6181','6182','6183','6188','6189','6194','6195','6196','6197','6202','6203','6204','6205','6206','6209','6212','6216','6217','6233','6234','6240','6243','6245','6246','6499','6921','6922','7708','7709','7710','7711','7712','8123','8125','8126','8128','8129','8130','8132','8133','8134','8135','8136','8753','8755','8757','8760','8761','8762','8837','8838','8839','8840','8841','8843','8844','8845','8846','8847','8848','8849','8850','8851','8852','8853','8854','8855','8856','8950','9009','9010','9011','9012','9013','9014','9015','9022','9023','9024','9025','9030','9031','9032','9035','9036','9038','9039','9040','9044','9045','9046','9047','9048','9049','9050','9052','9053','9054','9055','9056','9058','9059','9060','9061','9063','9064','9065','9066','9067','9068','9069','9070','9071','9072','9073','9074','9075','9076','9077','9078','9080','9081','9082','9083','9084','9085','9086','9087','9089','9090','9091','9092','9093','9094','9095','9096','9097','9098','9099','9102','9104','9105','9106','9107','9108','9109','9110','9111','9112','9113','9114','9115','9116','9117','9118','9119','9120','9121','9122','9124','9125','9126','9127','9128','9129','9130','9131','9132','9133','9134','9135','9136','9137','9138','9139','9146','9147','9148','9149','9150','9151','9152') ORDER BY priority DESC, id DESC LIMIT -60, 60