Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.5.5-10.1.48-MariaDB-0+deb9u2]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 ' 6835743' at line 1

/media_show.asp, line 18