please I have table 'data'
status name
------------
b X
a E
a B
b I
and I would like to get array like this:
array(
'a'=> array('B', 'E'),
'b'=> array('I', 'X')
)
How should I write query to get this? As you can see, everything should be ordered alphabetically.