MYSQL ERROR
select distinct EX_001_COMPETITION.EX_001_ID as competitionID, EX_001_COMPETITION.EX_001_NAME as competition from EX_004_MATCH, EX_001_COMPETITION where EX_004_MATCH.EX_001_COMPETITION_ID = EX_001_COMPETITION.EX_001_ID and ((EX_004_MATCH.EX_002_HOMETEAM_ID = 2083) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 2083)) and EX_004_MATCH.EX_004_SEASONEND = -1- and ((EX_004_MATCH.EX_002_HOMETEAM_ID = '2083' and EX_004_IHOMECAT='A') or (EX_002_AWAYTEAM_ID = '2083' and EX_004_IAWAYCAT='A' )) order by EX_001_COMPETITION.EX_001_NAME



Trace/api/libraries/db.php : line 129 : db->outputError( select distinct EX_001_COMPETITION.EX_001_ID as competitionID, EX_001_COMPETITION.EX_001_NAME as competition from EX_004_MATCH, EX_001_COMPETITION where EX_004_MATCH.EX_001_COMPETITION_ID = EX_001_COMPETITION.EX_001_ID and ((EX_004_MATCH.EX_002_HOMETEAM_ID = 2083) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 2083)) and EX_004_MATCH.EX_004_SEASONEND = -1- and ((EX_004_MATCH.EX_002_HOMETEAM_ID = '2083' and EX_004_IHOMECAT='A') or (EX_002_AWAYTEAM_ID = '2083' and EX_004_IAWAYCAT='A' )) order by EX_001_COMPETITION.EX_001_NAME

)

/api/models/match.php : line 874 : db->data( select distinct EX_001_COMPETITION.EX_001_ID as competitionID, EX_001_COMPETITION.EX_001_NAME as competition from EX_004_MATCH, EX_001_COMPETITION where EX_004_MATCH.EX_001_COMPETITION_ID = EX_001_COMPETITION.EX_001_ID and ((EX_004_MATCH.EX_002_HOMETEAM_ID = 2083) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 2083)) and EX_004_MATCH.EX_004_SEASONEND = -1- and ((EX_004_MATCH.EX_002_HOMETEAM_ID = '2083' and EX_004_IHOMECAT='A') or (EX_002_AWAYTEAM_ID = '2083' and EX_004_IAWAYCAT='A' )) order by EX_001_COMPETITION.EX_001_NAME )

/api/controllers/team.php : line 1126 : match->getCompetitionsByTeamAndSeason(2083,-1-,country)

/api/controllers/team.php : line 108 : controller_team->allmatches()

/api/index.php : line 255 : controller_team->controller_team(Array)