From df01eb784f3cb59bea386b21fdf89a09c089293e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 19:45:28 -0300 Subject: [skip ci] SQL is never right the first time... --- npc/functions/main.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 6d1c3762c..365943742 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -238,7 +238,7 @@ function script isin { // Get some acc id, even if offline // ( Name ) function script gf_accid { - .@nb = query_sql("SELECT `char`.account_id WHERE `char`.name='"+escape_sql(getarg(0))+"' LIMIT 2", .@value); + .@nb = query_sql("SELECT account_id FROM `char` WHERE name='"+escape_sql(getarg(0))+"' LIMIT 2", .@value); return .@value[0]; } -- cgit v1.2.3-60-g2f50