Error: Unable to perform query:
SELECT
pl.PlayerID, pl.PlayerFName, pl.PlayerLName, pl.picture,
te.TeamName, te.TeamAbbrev,
fm.AwardID, fm.AwardDetail, fm.AwardTitle,
at.*
FROM
awards fm
INNER JOIN
players pl ON fm.AwardPlayer = pl.PlayerID
INNER JOIN
teams te ON pl.PlayerTeam = te.TeamID
INNER JOIN
awardtypes at ON fm.AwardTitle = at.AwardID
WHERE
fm.AwardID =
ORDER BY at.rank_sort;
. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY at.rank_sort' at line 16 :