sklep.pl


Wystąpił błąd. Proszę spróbować później
["SELECT p.id, p.nazwa, LEFT(p.tresc,300) as tresc, LEFT(p.opis,300) as opis, k.nazwa as kategoria,k.id 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 z.item_id=p.id AND z.nr='0') LEFT JOIN nl_sklep_kategorie as k ON (p.kat = k.id) LEFT JOIN nl_sklep_promocje as prom ON (p.id = prom.prod AND prom.data_s<='1503352800' AND prom.data_k>='1503439199') WHERE p.aktiv=1 AND p.zapowiedz!=1 AND p.kat IN () AND p.id != '38' GROUP BY p.id ORDER BY p.top 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 p.id != '38' GROUP BY p.id ORDER BY p.top desc, p.data_d desc LI' at line 23]