i try to execute this query:
select *, (select * from tab1 where tab1.type!="firstype") as P
from tab2 where tab2.attr="something" and tab2.tab1_id=P.id
But i have this error:
Error Code: 1241. Operand should contain 1 column(s) 0,001 sec
i understand the error but not why come out. P.id not work?
select id from tab1 ...).