ERROR #1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and p.aktywnosc = 1' at line 1
QUERY #2:"SELECT COUNT(*) ilosc from produkt_szukaj as p where p.idkategorie IN( ) and p.aktywnosc = 1 "
ERROR #1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and p.aktywnosc = 1 order by p.cenabrutto LIMIT 20, 10' at line 1
QUERY #5:"SELECT *, ( Select nazwa from galeria as g where g.idprodukt = p.idprodukt order by g.id desc limit 1) as zdjecie from produkt_szukaj as p where p.idkategorie IN( ) and p.aktywnosc = 1 order by p.cenabrutto LIMIT 20, 10"