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 'AND v.AutorID=a.IDAutor ORDER BY v.RedniBroj ASC' at line 4
SELECT * FROM tblautorvideo v, tblautor a WHERE v.VideoID= AND v.AutorID=a.IDAutor ORDER BY v.RedniBroj ASC