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','2213','2671','2988','2994','2995','2996','2997','3005','3006','3007','3008','3011','3014','3015','3017','3018','3019','3021','3023','3186','3187','3188','3189','3191','3192','3311','3320','3331','3333','3337','5401','6096','6103','6133','6167','6169','6170','6171','6190','6207','6209','6214','6240','6241','9022','9023','9024','9025','9026','9027','9028','9029','9030','9031','9032','9033','9034','9035','9036','9037','9038','9039','9040','9041','9042','9043','9044','9045','9046','9059','9060','9061','9062','9063','9064','9065','9071','9072','9086','9093','9100','9104','9107','9108','9109','9110','9114','9295','9296','9297','9298','9299','9300','9621','9626','9628','9637','9638','10248','10249','10250','10702','11429','11666','11667','11678','11684','11685','11688','11690','11691','11692','11693','11694','11723','11736','11744','11745','11746','11747','11748','11749','11750','11751','11752','11753','11754','11755','11756','11757','11758','11759','11760','11761','11762','11763','11768','11769','11770','11771','11772','11773','11781','11782','11783','11784','11911','11912','11913','11914','11937','11938','11939','11940','12049','12050','12051') ORDER BY priority DESC, id DESC LIMIT -60, 60