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 'rows from galeria_albumy a, galeria_katalogi k where a.g_k_id=k.g_k_id and a...' at line 1
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in /home/seedpape/domains/art-papier.pl/public_html/common/galeria.php on line 152