I am storing a hard list of
SELECT @items := GROUP_CONCAT(ID) FROM table_1 ... etc
@items is now a string of numbers: 55,77,99,2038,2844,etc
Later, I try to use it in a where clause as such:
SELECT * FROM table_2 WHERE table_1.ID IN (@items)
This does not work. It seems like it should. I know when I manually pull the data, put it in a variable, then output it it works:
list($x) = SELECT @items := GROUP_CONCAT(ID) FROM table_1 ... etc
$goodResults = SELECT * FROM table_2 WHERE table_1.ID IN ($x)
Any ideas? Thanks.