I Have a table with a table with a field containing ids and want make a LEFT JOIN ON id IN
table a
|id|invoice|contents|
|1 |123 |1,3 |
table b
|id|content|
|1 |aaa |
|2 |bbb |
|3 |ccc |
SELECT invoice, content
FROM a
LEFT JOIN b ON b.id IN (a.contents)
The result is only 1 row with the first "content.id" an not two rows. mysql converts the string to a number, right? How to solve this?