This is my current query:
SELECT * FROM images T
JOIN boxes_items T2
ON T.ITEM_ID = T2.ITEM_PARENT_ID
WHERE T2.ITEM_ID = '$image_id'
I also need to Select all from a table named 'boxes' where the box_id is taken from boxes_items.
How to add this to the query?