Query error in [SELECT COUNT(dn_fotogalerie_fotky.id) FROM dn_fotogalerie_fotky LEFT JOIN dn_fotogalerie ON dn_fotogalerie_fotky.id_fotogalerie = dn_fotogalerie.id WHERE dn_fotogalerie_fotky.id_fotogalerie = AND (dn_fotogalerie_fotky.publikovano = 1 OR dn_fotogalerie.id_uzivatele = 0)]. 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 (dn_fotogalerie_fotky.publikovano = 1 OR dn_fotogalerie.id_' at line 1.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 132907014 bytes) in /web/htdocs1/weboveprezentacecom/home/www/weby/deltaphon/include/funkce-general.php on line 31