Query error in [SELECT npp_fotogalerie_fotky.id AS id,
npp_fotogalerie_fotky.nazev AS nazev,
npp_fotogalerie_fotky.nazev_txt AS nazev_txt,
npp_fotogalerie_fotky.nazev_txt_pripona AS nazev_txt_pripona,
npp_fotogalerie_fotky.popis AS popis,
npp_fotogalerie_fotky.poradi AS poradi,
npp_fotogalerie_fotky.publikovano AS publikovano,
npp_fotogalerie_fotky.id_fotogalerie AS id_fotogalerie
FROM npp_fotogalerie_fotky LEFT JOIN npp_fotogalerie ON npp_fotogalerie_fotky.id_fotogalerie = npp_fotogalerie.id
WHERE npp_fotogalerie_fotky.id_fotogalerie = AND
(npp_fotogalerie_fotky.publikovano = 1 OR npp_fotogalerie.id_uzivatele = 0)
ORDER BY poradi ASC]. 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
(npp_fotogalerie_fotky.publikovano = 1 OR npp_fotogalerie.i' at line 10. | přehled fotek