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 ('6','7','8','13','1212','1213','1214','1215','1216','1217','1218','1219','1220','1221','1222','1223','1224','1225','1226','1227','1228','1229','1230','1231','1232','1233','1234','1235','1236','1237','1238','1239','1240','1241','1242','1243','1244','1245','1248','1249','1250','1251','1252','1253','1254','1256','1257','1258','1259','1260','1261','1262','1265','1266','1331','1332','1334','1335','1336','1337','1338','1339','1340','1346','1347','1348','1349','1594','1603','1650','1671','1684','1687','1688','1689','1693','1697','1698','1699','1700','1702','1708','1713','1716','1732','1733','1734','1735','1736','1737','1738','1739','1771','1772','1773','1774','1775','1776','1797','1805','1806','1816','1818','1823','1824','1825','1828','1831','1832','1833','1834','1835','1836','1837','1838','1840','1847','1848','1850','1851','1858','1859','1860','1861','1862','1863','1865','1869','1870','1871','1872','1873','1876','1877','1878','1879','1880','1885','1886','1890','1891','1892','1893','1894','1899','1900','1901','1904','1905','1906','1911','1912','1914','1917','1922','1923','1924','1925','1926','1927','1928','1929','1930','1931','1932','1933','1934','1935','1936','1937','1938','1939','1940','1941','1942','1943','1944','1945','1946','1947','1948','1949','1950','1951','1952','1953','1954','1955','1956','1957','1958','1959','1960','1961','1962','1963','1964','1965','1966','1967','1968','1969','1970','1971','1972','1973','1976','1977','1978','1982','1983','1984','1986','1987','1990','1991','1992','1993','1995','1996','1997','1998','2003','2004','2005','2006','2007','2011','2012','2013','2018','2019','2022','2023','2027','2028','2029','2030','2034','2036','2037','2038','2039','2040','2041','2042','2043','2044','2045','2046','2051','2052','2053','2054','2056','2058','2059','2060','2061','2062','2064','2065','2066','2067','2068','2076','2096','2097','2098','2103','2104','2108','2109','2110','2111','2132','2133','2209','2210','2213','2214','2215','2216','2223','2226','2227','2228','2229','2230','2232','2233','2234','2235','2236','2237','2238','2240','2241','2242','2243','2244','2245','2246','2247','2248','2249','2250','2251','2252','2253','2254','2255','2256','2259','2260','2261','2262','2263','2264','2270','2271','2272','2274','2275','2276','2277','2278','2282','2284','2287','2288','2289','2290','2291','2292','2293','2294','2295','2296','2300','2301','2302','2306','2307','2308','2315','2316','2317','2318','2319','2320','2321','2322','2323','2324','2325','2326','2327','2328','2329','2330','2331','2332','2333','2334','2335','2336','2337','2338','2339','2340','2341','2342','2343','2344','2345','2346','2347','2348','2349','2351','2352','2358','2359','2360','2361','2362','2363','2364','2365','2369','2370','2371','2376','2377','2378','2381','2382','2383','2384','2386','2387','2388','2389','2407','2408','2412','2413','2414','2415','2417','2418','2419','2421','2422','2423','2428','2429','2431','2435','2436','2437','2441','2442','2443','2447','2448','2450','2454','2455','2459','2460','2464','2465','2466','2467','2468','2469','2470','2471','2472','2473','2474','2475','2476','2477','2478','2479','2480','2484','2485','2487','2488','2492','2493','2497','2501','2505','2506','2546','2551','2565','2566','2567','2568','2569','2570','2571','2572','2594','2595','2620','2621','2622','2624','2625','2626','2628','2629','2631','2632','2634','2635','2636','2637','2639','2640','2644','2645','2646','2648','2649','2650','2651','2655','2656','2658','2659','2661','2662','2666','2667','2671','2679','2681','2682','2686','2687','2689','2690','2692','2693','2695','2696','2698','2699','2700','2702','2703','2705','2706','2707','2709','2710','2712','2713','2715','2716','2718','2719','2720','2721','2722','2725','2726','2727','2729','2730','2732','2734','2736','2737','2738','2739','2741','2742','2743','2744','2745','2746','2749','2750','2751','2752','2754','2755','2756','2757','2758','2759','2760','2761','2762','2763','2765','2769','2770','2771','2775','2776','2777','2781','2782','2787','2788','2789','2795','2796','2797','2798','2799','2800','2801','2802','2803','2804','2805','2806','2807','2808','2809','2819','2820','2821','2822','2823','2824','2825','2826','2827','2828','2829','2830','2831','2832','2833','2834','2835','2836','2837','2840','2843','2846','2849','2852','2853','2857','2858','2861','2864','2867','2870','2873','2880','2884','2888','2892','2895','2898','2901','2904','2908','2914','2915','2919','2920','2921','2922','2923','2924','2925','2926','2927','2928','2929','2930','2932','2933','2934','2935','2936','2937','2938','2939','2940','2941','2942','2944','2951','2952','2953','2954','2955','2956','3041','3069','3070','3071','3072','3073','3074','3075','3076','3077','3078','3079','3080','3081','3082','3084','3085','3086','3087','3088','3089','3090','3091','3092','3093','3094','3095','3096','3101','3103','3104','3105','3111','3114','3129','3130','3131','3132','3133','3134','3135','3136','3163','3164','3165','3166','3184','3185','3186','3187','3195','3244','3250','3251','3252','3253','3254','3255','3256','3257','3258','3259','3260','3262','3263','3265','3268','3274','3275','3276','3282','3283','3284','3286','3288','3297','3298','3301','3302','3303','3317','3323','3325','3341','3342','3343','3344','3345','3346','3347','3348','3349','3350','3351','3352','3353','3354','3362','3363','3373','3374','3376','3381','3382','3388','3391','3393','3394','3396','3397','3399','3400','3401','3402','3403','3404','3405','3406','3407','3408','3409','3414','3415','3416','3417','3422','3425','3431','3432','3438','3442','3447','3452','3454','3459','3462','3464','3466','3471','3474','3486','3488','3493','3494','3495','3502','3503','3508','3511','3520','3521','3529','3530','3540','3542','3543','3551','3565','3570','3574','3576','3584','3599','3600','3620','3621','3625','3626','3627','3628','3641','3642','3657','3658','3668','3669','3670','3674','3675','3676','3702','3705','3717','3718','3719','3720','3722','3723','3726','3727','3732','3733','3734','3740','3741','3742','3746','3747','3749','3750','3751','3752','3753','3761','3762','3763','3764','3765','3766','3767','3769','3774','3778','3779','3780','3784','3785','3794','3795','3802','3803','3804','3805','3810','3811','3812','3813','3814','3820','3821','3822','3832','3833','3836','3849','3850','3851','3852','3858','3865','3868','3869','3874','3875','3876','3885','3886','3889','3890','3891','3892','3893','3897','3898','3899','3903','3904','3905','3906','3907','3908','3909','3912','3913','3914','3919','3920','3921','3923','3924','3925','3926','3927','3928','3929','3930','3931','3932','3933','3937','3938','3939','3945','3946','3947','3948','3949','3950','3951','3952','3953','3954','3955','3956','3957','3958','3959','3960','3961','3962','3963','3964','3965','3966','3967','3968','3969','3970','3971','3972','3973','3974','3975','3976','3977','3978','3979','3980','3981','3982','3983','3984','3985','3986','3988','3989','3990','3991','3992','3993','3994','3995','3996','3997','3998','3999','4000','4001','4002','4003','4004','4005','4006','4007','4008','4009','4010','4011','4012','4013','4014','4015','4016','4017','4018','4019','4020','4021','4022','4023','4024','4025','4026','4027','4028','4029','4030','4031','4032','4033','4034','4035','4036','4037','4038','4039','4040','4041','4042','4043','4044','4045','4046','4047','4048','4049','4050','4051','4052','4053','4054','4055','4057','4058','4059','4060','4061','4062','4063','4064','4065','4066','4067','4068','4069','4070','4071','4072','4073','4074','4075','4170','4187','4188','4196','4210','4220','4230','4247','4258','4274','4298','4304','4657','4779','4780','4781','4796','4802','4803','4845','4848','4851','4854','4862','4869','4872','4876','4879','4880','4881','4883','4888','4889','4890','4895','4896','4897','4920','4921','4922','4923','4924','4925','4929','4930','4931','4932','4933','4934','4935','4938','4939','4946','4947','4948','4949','4950','4953','4954','4973','4974','4975','4976','4977','4978','4979','4980','5014','5015','5024','5028','5033','5040','5041','5043','5044','5050','5051','5053','5054','5055','5056','5144','5145','5147','5151','5152','5155','5157','5167','5168','5169','5174','5176','5177','5178','5190','5197','5199','5200','5201','5205','5211','5212','5219','5221','5223','5250','5254','5263','5265','5269','5270','5273','5382','5383','5388','5389','5391','5393','5394','5395','5396','5397','5402','5428','5432','5434','5435','5436','5441','5442','5445','5446','5448','5449','5460','5463','5466','5467','5471','5473','5475','5477','5478','5480','5481','5482','5483','5484','5485','5486','5487','5488','5489','5490','5495','5501','5505','5511','5513','5514','5515','5516','5517','5518','5522','5523','5524','5525','5526','5527','5528','5529','5539','5541','5544','5545','5547','5548','5549','5550','5551','5556','5557','5558','5559','5560','5561','5563','5565','5566','5567','5570','5571','5572','5573','5575','5576','5577','5578','5589','5590','5594','5596','5597','5598','5599','5600','5601','5602','5603','5604','5605','5606','5607','5608','5609','5610','5611','5613','5614','5615','5671','5761','6047','6104','6107','6112','6115','6124','6125','6127','6130','6131','6132','6133','6134','6138','6141','6143','6144','6145','6146','6147','6148','6150','6151','6154','6155','6156','6242','6244','6247','6248','6251','6258','6260','6261','6280','6286','6290','6292','6293','6295','6296','6307','6308','6311','6313','6315','6321','6322','6340','6341','6342','6343','6344','6345','6346','6347','6355','6356','6360','6361','6362','6363','6366','6367','6369','6372','6376','6377','6378','6380','6381','6385','6391','6392','6397','6398','6400','6401','6414','6415','6420','6422','6429','6430','6431','6432','6437','6441','6448','6449','6450','6451','6452','6464','6465','6466','6467','6468','6470','6471','6472','6473','6490','6491','6492','6493','6494','6495','6496','6497','6502','6505','6506','6507','6508','6509','6510','6519','6520','6523','6526','6527','6530','6531','6532','6533','6534','6538','6539','6540','6541','6542','6562','6563','6566','6567','6574','6575','6576','6577','6580','6581','6582','6583','6588','6589','6590','6591','6592','6595','6620','6622','6623','6624','6625','6626','6627','6634','6635','6639','6640','6652','6653','6654','7026','7027','7028','7029','7030','7031','7032','7033','7034','7035','7036','7038','7039','7040','7041','7042','7043','7044','7045','7046','7047','7049','7050','7051','7055','7056','7060','7061','7068','7069','7071','7072','7073','7074','7077','7078','7079','7080','7081','7082','7083','7084','7087','7088','7089','7090','7091','7092','7093','7094','7095','7096','7102','7104','7105','7106','7108','7109','7110','7112','7113','7114','7115','7116','7117','7119','7120','7121','7122','7123','7124','7125','7126','7127','7128','7129','7130','7131','7132','7134','7135','7136','7137','7140','7141','7142','7143','7144','7145','7150','7151','7152','7153','7154','7155','7156','7157','7158','7162','7163','7164','7166','7167','7168','7169','7170','7171','7177','7178','7179','7181','7182','7184','7185','7187','7188','7189','7192','7193','7194','7195','7198','7200','7201','7202','7205','7206','7207','7208','7209','7210','7211','7212','7213','7214','7216','7217','7218','7220','7221','7223','7224','7225','7226','7227','7230','7231','7232','7234','7235','7237','7238','7240','7241','7242','7243','7245','7246','7248','7249','7251','7252','7254','7255','7256','7258','7259','7260','7261','7262','7263','7264','7265','7267','7268','7272','7273','7274','7275','7276','7277','7285','7286','7287','7288','7289','7290','7293','7294','7295','7296','7297','7306','7307','7308','7310','7311','7312','7314','7315','7316','7317','7318','7319','7320','7323','7324','7325','7326','7327','7328','7330','7331','7332','7336','7337','7341','7342','7346','7347','7350','7354','7358','7359','7360','7361','7362','7366','7370','7371','7373','7378','7384','7385','7386','7387','7388','7391','7392','7393','7394','7398','7399','7401','7402','7405','7406','7407','7411','7412','7414','7415','7416','7419','7420','7422','7425','7428','7429','7431','7432','7433','7434','7435','7436','7438','7439','7440','7441','7442','7443','7444','7445','7447','7448','7449','7452','7453','7455','7456','7457','7458','7459','7460','7461','7462','7464','7465','7466','7470','7471','7474','7476','7477','7481','7482','7483','7484','7487','7488','7492','7493','7495','7498','7499','7501','7502','7503','7504','7505','7507','7509','7510','7511','7514','7515','7516','7517','7518','7519','7520','7521','7523','7524','7525','7527','7531','7536','7537','7538','7539','7540','7541','7542','7547','7548','7549','7550','7553','7554','7555','7556','7557','7558','7559','7565','7566','7567','7719','7720','7721','7722','7723','7724','7725','7726','7727','7728','7729','7730','7731','7732','7737','7740','7741','7743','7744','7745','7746','7747','7748','7749','7750','7751','7752','7753','7754','7755','7756','7757','7759','7760','7761','7762','7764','7767','7768','7773','7774','7776','7777','7778','7779','7780','7781','7782','7783','7784','7788','7789','7790','7791','7793','7794','7802','7803','7804','7805','7806','7807','7808','7811','7812','7814','7818','7819','7821','7827','7828','7837','7838','7839','7845','7846','7847','7851','7853','7860','7867','7884','7885','7886','7891','7892','7893','7897','7898','7899','7901','7902','7903','7904','7905','7906','7912','7913','7914','7915','7917','7925','7926','7927','7928','7929','7930','7931','7932','7933','7934','7935','7936','7937','7941','7942','7946','7947','7952','7954','7955','7956','7957','7958','7959','7960','7961','7962','7963','7964','7965','7966','7967','7968','7975','7976','7977','7978','7979','7980','7981','7982','7983','7984','7985','7986','7987','7988','7989','7990','7991','7992','7993','7994','7995','7996','7997','7998','7999','8000','8001','8002','8003','8004','8005','8006','8007','8008','8009','8010','8011','8013','8014','8015','8016','8017','8018','8019','8020','8021','8024','8025','8026','8027','8028','8029','8030','8034','8035','8036','8037','8038','8041','8042','8043','8044','8048','8049','8050','8051','8052','8053','8054','8055','8056','8057','8058','8059','8060','8062','8067','8068','8069','8070','8071','8072','8073','8074','8075','8076','8077','8078','8079','8080','8081','8082','8083','8084','8085','8086','8087','8088','8089','8090','8091','8092','8093','8094','8096','8098','8099','8100','8101','8102','8103','8104','8105','8106','8107','8108','8109','8112','8114','8115','8116','8117','8121','8122','8131','8137','8138','8139','8140','8141','8142','8143','8144','8146','8147','8148','8149','8150','8151','8152','8153','8154','8156','8157','8158','8159','8160','8161','8166','8167','8169','8170','8171','8178','8179','8180','8186','8187','8188','8189','8192','8193','8195','8196','8197','8199','8200','8202','8203','8204','8205','8211','8212','8213','8214','8215','8216','8217','8222','8223','8226','8227','8228','8229','8231','8232','8233','8234','8237','8238','8240','8241','8242','8243','8246','8247','8248','8256','8257','8259','8264','8266','8267','8269','8270','8271','8272','8273','8286','8287','8288','8289','8290','8291','8296','8297','8301','8302','8306','8307','8308','8313','8314','8320','8330','8337','8338','8339','8342','8343','8351','8352','8526','8528','8695','8696','8697','8700','8701','8706','8707','8708','8709','8714','8717','8718','8725','8726','8727','8728','8729','8730','8731','8733','8734','8735','8737','8738','8739','8740','8741','8742','8747','8748','8754','8756','8758','8759','8765','8777','8779','8780','8781','8782','8789','8790','8791','8792','8798','8799','8803','8804','8805','8806','8807','8821','8822','8830','8831','8832','8833','8834','8835','8836','8854','8855','8856','8860','8862','8864','8871','8872','8883','8886','8892','8893','8894','8895','8896','8897','8898','8899','8901','8905','8906','8907','8908','8913','8915','8916','8917','8923','8924','8925','8926','8931','8932','8933','8934','8939','8941','8942','8950','8951','8952','8955','8962','8965','8967','8968','8969','8970','8971','8972','8973','8974','8975','8976','8978','8981','8982','8983','8984','8985','8986','8987','8988','8989','8990','8992','8993','8998','8999','9001','9002','9003','9004','9005','9008','9009','9010','9019','9028','9033','9034','9037','9091','9092','9093','9094','9095','9096','9097','9098','9099','9100','9102','9125','9126','9127','9128','9129','9130','9158','9171','9173','9186','9190','9194','9195','9196','9197','9198','9199','9200','9201','9202','9204','9213','9217','9218','9220','9221','9223','9224','9226','9227','9237','9238','9239','9240','9241','9242','9243','9244','9245','9246','9247','9248','9252','9255') ORDER BY priority DESC, id DESC LIMIT -60, 60