Your not in
is:
2014_summary.player_id NOT IN
(SELECT T1.*, T2.player_id as primary_player_id
MySQL doesn't know which column to use in the select
for comparison to player_id
. So it returns an error. Actually, this is ANSI standard SQL functionality, and all databases work this way. The subquery in an in
needs to return only one column.
I think you want:
2014_summary.player_id NOT IN
(SELECT TT2.player_id
. . .