Wystąpił błąd. Proszę spróbować później
["SELECT, p.nazwa, LEFT(p.tresc,300) as tresc, LEFT(p.opis,300) as opis, k.nazwa as kategoria, as kat_id, p.cena as netto, IF (prom.on>0, IF((p.cena*1)<(p.cena+0), (p.cena+0)+prom.cena_add, (p.cena*1)+prom.cena_add), IF((p.cena*1)<(p.cena+0), (p.cena+0), (p.cena*1))) as netto, IF (prom.on>0, IF((((p.cena*1)+prom.cena_add)*((p.vat/100)+1))<(((p.cena+0)+prom.cena_add)*((p.vat/100)+1)), (((p.cena+0)+prom.cena_add)*((p.vat/100)+1)), (((p.cena*1)+prom.cena_add)*((p.vat/100)+1))), IF(((p.cena*1)*((p.vat/100)+1))<((p.cena+0)*((p.vat/100)+1)), ((p.cena+0)*((p.vat/100)+1)), ((p.cena*1)*((p.vat/100)+1)))) AS brutto, ((p.cena*1)*((p.vat/100)+1)) as cena_st, prom.cena_add ,z.plik as zdj , p.dir, p.cena_old, p.ilosc FROM nl_sklep_produkty as p LEFT JOIN nl_adm_zdjecia as z ON (z.rodz='sklep_produkty' AND AND'0') LEFT JOIN nl_sklep_kategorie as k ON (p.kat = LEFT JOIN nl_sklep_promocje as prom ON ( = AND prom.data_s<='1508623200' AND prom.data_k>='1508709599') WHERE p.aktiv=1 AND p.zapowiedz!=1 AND p.kat IN () AND != '23' GROUP BY ORDER BY desc, p.data_d desc LIMIT 2"]
[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 ') AND != '23' GROUP BY ORDER BY desc, p.data_d desc LI' at line 23]