Mysql Error

So, mysql is giving me an error in this lines:

	format(gQuery, sizeof(gQuery), "SELECT * FROM `banovi` WHERE `Ime` = '%s'", ImeIgraca(playerid));
	mysql_function_query(konekt, gQuery, true, "OnQueryFinish", "ii", THREAD_BANINFO, playerid);
and the error from mysql log is this::

[19:21:44] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM `Banovi` WHERE `Ime` = 'Nathan_Smith'' at line 1

Forum Jump:

Users browsing this thread: