Error in MySQL syntax when accessing API

It eventually solved mine, but i had to recreate a Service. There seems to be some caching going on that prevents changes to a created service from flowing through.