Still returns the same results! Got rid of divs. Now the query is:
SELECT w.windate,
w.wintime,
w.field,
w.htname,
w.vtname,
w.plateumpire,
w.fieldumpire1,
w.fieldumpire2,
w.fieldumpire3,
p.pteamname,
p.teamcoach
FROM playerteams AS p
INNER JOIN sportsdb_wins AS w ON p.pteamname IN (w.htname,w.vtname)
WHERE p.teamcoach = '$coachid'
AND p.forteam = '$teamid'
but no joy!
I am trying to display a list of teams that all have the same p.teamcoach. The playerteams table contains each team and has teamcoach set to that coach. sportsdb_wins contains a list of scheduled games that I want to display for a given coach.