I have a problem with this mysql query:
select * from tb1 as a
where (select count(*) from tb2 as b
where Match(b.column1) against(`a.id`) ) = '1'
Mysql has this error:
1054 - Unknown column 'a.id' in 'where clause'
So I want to get all entries in tb1 where the number of entries in tb2 where a.id is inside the 'column1' column is 1.
I hope you understand my purpose otherwise feel free to ask.
The table name should be outside the quotes, "a.id" is now handled as the column name (which off course doesn't exists), instead of a table.column pair: