DB syerrr error

07/17/2016 01:38 gregoryajram#1
is it possible to someone help me to resolve the below errors :

Quote:
SYSERR: Jul 17 02:35:00 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Column 'name' in field list is ambiguous
query: SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id
Quote:
SYSERR: Jul 17 02:35:00 :: Load: DirectQuery failed(SELECT IP_FROM, IP_TO, COUNTRY_NAME FROM iptocountry)
Quote:
SYSERR: Jul 17 02:35:00 :: LoadMonarchCandidacy: DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id)
07/17/2016 01:59 info.student#2
this is a MySQL error. You need to write the tables name in front of your columun names. Something like this:
Code:
SELECT <tablename>.<columnname> FROM ....
07/17/2016 11:25 gregoryajram#3
Quote:
Originally Posted by info.student View Post
this is a MySQL error. You need to write the tables name in front of your columun names. Something like this:
Code:
SELECT <tablename>.<columnname> FROM ....
uhmm alright i can try to add tablename ...
07/18/2016 03:49 Aerociety#4
SYSERR: Jul 17 02:35:00 :: DirectQuery: AsyncSQL:irectQuery : mysql_query error: Column 'name' in field list is ambiguous

That is telling you that the Column "name" is not unique
From your query : SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id

i can tell u that there is a name column in the player and in the monarch_candidacy table

to solve the problem change the query to

SELECT pid, player.name, date FROM monarch_candidacy a, player b where a.pid = b.id

or

SELECT pid, monarch_candidacy.name, date FROM monarch_candidacy a, player b where a.pid = b.id
07/18/2016 06:25 BizepsSupportAccount#5
Learning English, the rest doesnt even matter, also it exist a lot of topic because of that Errors.

Go to Account Db there is a table called Iptocountry 127.0.0.1 as ip in both columns, None as Name
07/23/2016 00:35 gregoryajram#6
Quote:
Originally Posted by Aerociety View Post
SYSERR: Jul 17 02:35:00 :: DirectQuery: AsyncSQL:irectQuery : mysql_query error: Column 'name' in field list is ambiguous

That is telling you that the Column "name" is not unique
From your query : SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id

i can tell u that there is a name column in the player and in the monarch_candidacy table

to solve the problem change the query to

SELECT pid, player.name, date FROM monarch_candidacy a, player b where a.pid = b.id

or

SELECT pid, monarch_candidacy.name, date FROM monarch_candidacy a, player b where a.pid = b.id
how am i suppose to edit the monarch_candidacy ?

Quote:
Originally Posted by BizepsSupportAccount View Post
Learning English, the rest doesnt even matter, also it exist a lot of topic because of that Errors.

Go to Account Db there is a table called Iptocountry 127.0.0.1 as ip in both columns, None as Name
Iptocountry table has 3 columns but all of them are empty.