Lets say we have this MySQL table
name value
author Sabriel Armstrong
author Peter Abhorsen
author Garth Stein
item bell
item book
item sword
item wand
Given these database entries, is there a way to retrieve this values as to get it in the format below? Or is my database modeling wrong?
array(
[author] => array(Sabriel Armstrong,Peter Abhorsen, Garth Stein),
[item] => array(bell,book,sword, wand)
)