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 ('1285','1286','1287','1386','1387','1388','1389','1390','1391','1392','1393','1394','1395','1396','1397','1398','1399','1400','1401','1402','1403','3159','3196','3197','3199','3202','3209','3210','3211','3212','3214','3222','3223','3224','3225','3226','3227','3228','3229','3230','3231','3232','3233','3234','3235','3236','3237','3238','3239','3307','3308','3311','3315','3316','3324','3331','3332','3356','3357','3358','3360','3365','3366','3367','3368','3369','3370','3372','3922','4811','5063','5064','5065','5066','5067','5068','5069','5070','5071','5072','5073','5074','5075','5076','5077','5078','5079','5333','5334','5335','5336','5337','5338','5339','5340','5341','5342','5343','5344','5906','5907','5908','5909','5910','5911','5912','5913','5915','5916','5917','5918','5919','5921','5922','5923','5924','5925','5927','5928','5929','5930','5931','5932','5933','5934','5935','5936','5937','5938','5939','5940','5942','5943','5944','5945','5946','5947','5948','5949','5950','5951','5952','5953','5954','5955','5956','5957','5958','5959','5960','5961','5962','5963','5964','5965','5966','5967','5968','5969','5970','5971','5972','5973','5974','5975','5976','5977','5978','5979','5980','5981','5982','5983','5984','5985','5986','5987','5988','5989','5990','5991','5992','5993','5994','5995','5996','5997','5998','5999','6000','6001','6002','6003','6004','6005','6006','6007','6207','6208','6209','6210','6211','6212','6213','6214','6215','6216','6643','6645','6646','6647','6648','6649','6650','6651','6652','6653','6654','6655','6656','6657','6658','6659','6660','6661','6662','6663','6664','6665','6666','6667','6668','6669','6670','6671','6672','6673','6675','6676','6677','6678','6679','6680','6681','6682','6683','6684','6685','6686','6687','6688','6689','6690','6691','6692','6693','6694','6695','6696','6697','6698','6699','6700','6701','6702','6703','6704','6705','6706','6707','6708','6709','6710','6711','6712','6713','6714','6715','6716','6717','6718','6719','6720','6721','6722','6723','6724','6725','6726','6727','6728','6729','6730','6731','6732','6733','6734','6735','6736','6737','6738','6739','6740','6741','6742','6743','6744','6745','6746','6747','6748','6749','6750','6751','6752','6753','6754','6755','6756','6757','6758','6759','6760','6761','6762','6763','6764','6765','6766','6767','6768','6769','6770','6771','6772','6773','6774','6775','6776','6777','6778','6779','6780','6781','6782','6783','6785','6786','6788','6789','6790','6791','6792','6793','6794','6795','6796','6797','6798','6799','6800','6801','6802','6803','6804','6805','6806','6807','6808','6809','6810','6811','6812','6813','6814','6815','6816','6817','6818','6819','6820','6821','6822','6823','6824','6825','6826','6827','6828','6829','6830','6831','6832','6833','6834','6835','6836','6837','6838','6839','6840','6841','6842','6843','6845','6846','6847','6848','6849','6850','6851','6852','6853','6855','6856','6857','6858','6859','6860','6862','6863','6864','6865','6866','6867','6869','6870','6871','6872','6873','6874','6875','6876','6877','6878','6879','6880','6881','6882','6883','6884','6885','6886','6887','6888','6889','6890','6891','6892','6893','6894','6895','6896','6897','6898','6899','6900','6901','6902','6903','6904','6905','6906','6907','6908','6909','6910','6911','6913','6914','6915','6916','6917','6918','6919','6920','6921','6922','6923','6924','6925','6926','6927','6928','6929','6931','6932','6933','6934','6935','6936','6937','6938','6939','6940','6941','6942','6943','6944','6945','6946','6947','6948','6949','6950','6951','6952','6953','6954','6955','6956','6957','6958','6959','6960','6961','6962','6963','6964','6965','6966','6967','6968','6969','6970','6971','6972','6973','6974','6975','6976','6977','6978','6979','6980','6981','6982','6983','6984','6985','6986','6987','6990','6991','6992','6993','6994','6995','6996','6997','6998','6999','7000','7001','7002','7003','7004','7005','7006','7007','7008','7009','7010','7011','7012','7013','7014','7015','7016','7017','7018','7019','7020','7021','8766','8767','8768','8769','8770','8803','8865','8866','8918','8921','8922','8945','8947','8948','8949','9038','9121','9637','9638','10553','10554','10555','10557','10558','10559','10560','10561','10562','10563','10564','10565','10566','10567','10568','10569','10570','10571','10572','10574','10575','10576','10577','10578','10580','10581','10582','10583','10584','10585','10586','10587','10588','10589','10590','10591','10592','10593','10594','10595','10596','10597','10598','10599','10600','10601','10602','10603','10605','10606','10607','10608','10609','10610','10611','10612','10613','10614','10615','10616','10617','10618','10620','10621','10622','10623','10624','10625','10626','10627','10628','10629','10630','10631','10632','10633','10634','10635','10636','10637','10638','10639','10640','10641','10642','10643','10644','10645','10646','10647','10648','10649','10650','10651','10652','10653','10654','10655','10656','10657','10658','10659','10660','10661','10662','10663','10664','10665','10666','10667','10668','10669','10670','10671','10672','10673','10674','10675','10676','10677','10678','10679','10680','10681','10682','10683','10684','10685','10686','10687','10688','10689','10690','10691','10692','10693','10694','10695','10696','10697','10698','10699','10700','10701','10704','10705','10706','10707','10708','10709','10710','10711','10712','10713','10714','10715','10716','10717','10718','10719','10720','10721','10722','10723','10724','10725','10726','10727','10729','10730','10731','10732','10733','10734','10735','10737','10738','10739','10740','10741','10742','10743','10744','10745','10746','10747','10748','10749','10750','10751','10752','10753','10754','10755','10756','10757','10758','10759','10760','10761','10762','10763','10764','10765','10766','10767','10768','10769','10770','10771','10772','10773','10774','10775','10776','10777','10778','10779','10780','10781','10782','10783','10784','10785','10786','10787','10788','10789','10790','10791','10792','10793','10794','10795','10796','10797','10798','10799','10801','10802','10803','10804','10805','10806','10807','10808','10809','10810','10811','10812','10813','10816','10817','10818','10819','10820','10821','10822','10823','10824','10825','10826','10827','10828','10829','10830','10831','10832','10833','10834','10835','10836','10837','10838','10839','10840','10841','10842','10843','10844','10845','10846','10847','10848','10849','10850','10851','10852','10853','10854','10855','10857','10858','10859','10860','10861','10863','10864','10865','10866','10868','10869','10870','10871','10943','10944','11349','11350','11541','11542','11543','11544','11545','11546','11548','11550','11551','11552','11553','11554','11555','11557','11558','11559','11560','11561','11562','11563','11564','11565','11566','11567','11568','11569','11570','11571','11572','11573','11574','11575','11576','11577','11578','11579','11580','11581','11582','11583','11584','11585','11586','11587','11588','11589','11590','11591','11592','11593','11594','11595','11596','11597','11598','11599','11600','11601','11602','11603','11604','11605','11606','11607','11608','11609','11610','11611','11656','11657','11658','11659','11660','11661','11692','11693','11694','11695','11696','11697','11698','11699','11700','11723','11739','11740','11744','11745','11746','11747','11748','11749','11750','11751','11752','11764','11766','11767') ORDER BY priority DESC, id DESC LIMIT -60, 60