16.01.2016, 01:31
Would've thought that "You have an error in your SQL syntax;" would give you a clue as to what it's having an issue with.
What version of MariaDB are you using, and has it worked at all in the past?
What version of MariaDB are you using, and has it worked at all in the past?