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 = 7) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 7)) and EX_004_MATCH.EX_004_SEASONEND = 1979%7D order by EX_001_COMPETITION.EX_001_NAME

Unknown column '7D' in 'where clause'


Trace/api/libraries/db.php : line 130 : 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 = 7) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 7)) and EX_004_MATCH.EX_004_SEASONEND = 1979%7D order by EX_001_COMPETITION.EX_001_NAME

Unknown column '7D' in 'where clause')

/api/models/match.php : line 871 : 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 = 7) or (EX_004_MATCH.EX_002_AWAYTEAM_ID = 7)) and EX_004_MATCH.EX_004_SEASONEND = 1979%7D order by EX_001_COMPETITION.EX_001_NAME )

/api/controllers/team.php : line 1125 : match->getCompetitionsByTeamAndSeason(7,1979%7D,club)

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

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