Nested Array from MySQL Statement

Thanks for the prompt response...
I meant to include this but forgot. This is something similar to what I'm aiming for, I'd like the 'pin' to be nested beneath 'id'. Ignore the rfid's as I won't be using those for the moment.