I tried to use my-aac 0.8.2 and the error continues, however using the old distro that was already compiled never gave this error, only the new one I compiled.It's not a problem with this distribution, but SQL schema script file from www service, you attempt to use.
At least one of your *.sql file has unfinished query.
Take a look at this example:
SQL:UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100,`
It basically tries to set attributes of lvl 1 player for all records in table players, but it doesn't set town_id or initial positions. It also ends with comma and apostrophe instead of semicolon, as every sql query should.
I'dont know which www service you're trying to use, but myaac-0.8.2 (which I'm personally using) doesn't even have such query.
If I were you I'd try to fix these queries like so: (Even tho I don't know if I'm missing any crucial part)
Example:
SQL:UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100;
If it doesn't help, try to use other webpage service.
If you don't know how to find such files. You can use notepad++ ctrl+shift+F function. It finds specified strings in multiple files, which is better option than manual search.
I tried to find that part anyway and I didn't find
SQL:
UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100;