Problem mit diesem sql befehl ....

03/02/2013 09:36 achimsen#1
hallo, bin dabei mir eine ingame rangliste zu erstellen . habe die quest geschrieben , die quest funktionen eingebaut und komm nicht weiter. putty schmeisst mir den fehler raus :


PHP Code:
ERROR 1064 (42000at line 1You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '=select name, points, attended from player.pvp_tournament_ranking ORDER BY point' at line 1 
zeile in der quest :

PHP Code:
function get_top_ten()
            
local sql mysql_query("SELECT name, points, attended FROM player.pvp_tournament_ranking ORDER BY points DESC LIMIT 10")
            
local ranking = {}
            if 
sql == "ERROR" then
                
return {}
            else 
hilfe :/