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 'ORDER BY vlog_time ASC' at line 4
SELECT * FROM video_log WHERE vlog_link_video= ORDER BY vlog_time ASC