Hallo zusammen. Ich habe folgende Query:
Folgender Fehler:
Fatal error: 1109: Unknown table 'M' in where clause in C:\http\xampp\htdocs\projects\frantic\lib\classes\class_db.inc on line 91
Nehme ich das WHERE mit dem dahinter raus, funktioniert es einwandfrei.
Wie kommt das?
Grüße, Oli
Code:
SELECT
M.matchId, M.enemyId, M.squadId, M.points1, M.points2,
E.enemyName,
S.squadName,
V.eventId, V.eventName
FROM
frantic_matches M
LEFT JOIN frantic_enemies E ON M.enemyId=E.enemyId
LEFT JOIN frantic_squads S ON M.squadId=S.squadId
LEFT JOIN frantic_events V ON M.eventId=V.eventId
WHERE
M.points1>M.points2 AND M.squadId='3'
ORDER BY
M.matchId DESC
LIMIT 0,2
Fatal error: 1109: Unknown table 'M' in where clause in C:\http\xampp\htdocs\projects\frantic\lib\classes\class_db.inc on line 91
Nehme ich das WHERE mit dem dahinter raus, funktioniert es einwandfrei.
Wie kommt das?
Grüße, Oli
Moderator
Kommentar