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 '' at line 5
SELECT a.id_album, a.id_usr, a.data, a.nazwa_alb, a.autor_alb, a.odslon_alb, a.ilosc_zdj, a.opis, a.id_zdj, z.nazwa_zdj, z.tytul_zdj FROM gal_albumy a LEFT JOIN gal_zdjecia z ON(a.id_zdj_gl=z.id_zdj) WHERE a.blok=0 AND z.blok=0 AND a.id_galeria='1' ORDER BY a.pos DESC LIMIT 0,

Fatal error: Call to a member function fetch_assoc() on a non-object in /home/miastkowo/domains/miastkowo.pl/public_html/luba/inc/klasy/db_mysql.class.php on line 178