Query error in [SELECT katalog.*
FROM katalog
JOIN album_skladby ON album_skladby.nazev=katalog.nazev
AND album_skladby.album=
AND katalog.mpg_dvd_sml=1
ORDER BY album_skladby.nazev
LIMIT 50]. 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 katalog.mpg_dvd_sml=1
ORDER BY album_skladby.nazev
LIMIT 50' at line 5.