22.09.2015, 03:21
Exists is mysql reserved keyword, you need to escape them with backtick `
https://dev.mysql.com/doc/refman/5.0/en/keywords.html
Here's the right syntax.
https://dev.mysql.com/doc/refman/5.0/en/keywords.html
Here's the right syntax.
Код:
format(query,sizeof query,"SELECT COUNT(*) AS `exists` FROM factions WHERE facname='%s'",localfname);