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 'l, marks.mark as marka_ FROM katalog_mat, marks WHERE katalog_mat.vivod_titul = ' at line 1