I have a subquery that returns 3 columns. I cannot get rid of them. I want to only use one of the columns for the parent query.
For example.
SELECT * FROM table_a WHERE id = (SELECT a,id,b FROM table_b LIMIT 1);
I want to only get id from table_b.
I'm looking for something along the lines of:
SELECT * FROM table_a WHERE id = (SELECT a,id,b FROM table_b LIMIT 1)[id];
How would I accomplish this?