The column names in the table you have posted differ from those in your code. If the Boxes table has the same columns as the table you've posted you'd have to change a query to the following, though I've had to guess what column names to use where they differ from those in your code:
SELECT...