Hello.I would like to ask where is the mistake here?
PHP Code:
formatex( szQuery, charsmax( szQuery ), "SELECT user_name FROM ph_users WHERE user_id IN (%s) ORDER BY FIELD(user_id,%s)", szBuffer, szBuffer );
Because in HLDS I have error like that:
Quote:
|
L 03/19/2017 - 16:24:02: [MySQL] Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY FIELD(user_id,)' at line 1.
|
Where am I doing a mistake?