MySQL for some reason is not happy with this :
Executing
gives me 1,2,4,5,6,9
and executing
seems to be fine too.
But when I put them together, thats when MySQL starts complaining.
Any ideas?
Code:
select * from cr_person where id in (
select person1,pereson2,person3,person4,person5,person6 from cr_team where teamid = 1
)
Executing
Code:
select person1,pereson2,person3,person4,person5,person6 from cr_team where teamid = 1
and executing
Code:
select * from cr_person where id in (
1,2,4,5,6,9
)
But when I put them together, thats when MySQL starts complaining.
Code:
select * from cr_person where id in (
select person1,pereson2,person3,person4,person5,person6 from cr_team where teamid = 1
)
Any ideas?