Hiba az adatbázis lekérdezésben! : SELECT count(DISTINCT(t.chapter)) FROM texts t, versionrouter v WHERE t.book=1 AND t.id = v.textid AND v.versionid = , 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 1