Raised This Month: $32 Target: $400
 8% 

MySQL Syntax Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Croxeye.
Member
Join Date: Nov 2018
Old 12-14-2018 , 17:11   MySQL Syntax Error
Reply With Quote #1

Error:
Code:
Load Query failed. [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 '60), ' min') AS time_played_string, COUNT(*) AS total_players FROM blackcartel.p' at line 1
L 12/14/2018 - 21:59:54: [MySQL] No result set in this query!
L 12/14/2018 - 21:59:54: [AMXX] Displaying debug trace (plugin "BlackCartel.amxx")
L 12/14/2018 - 21:59:54: [AMXX] Run time error 10: native error (native "SQL_ReadResult")
L 12/14/2018 - 21:59:54: [AMXX]    [0] BlackCartel.sma::MySQL_Show_Rank (line 751)
Query
PHP Code:
SELECT (SELECT Count(*) FROM `player` AS p2 WHERE p2.xp p1.xp) + AS player_positionCONCAT(((p1.time_played 10DIV 60), ' h ', ((p1.time_played 10) % 60), ' min') AS time_played_stringCOUNT(*) AS total_players FROM blackcartel.player AS p1 WHERE p1.nick '%s'", g_player[cId][nick]); 
When I run this query in mysql workbench I don't have any errors and I get correct response. What version of mysql client is in 1.8.2 ?

Last edited by Croxeye.; 12-14-2018 at 18:21.
Croxeye. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode