Don't know what that line:
$drives[0]

is supposed to do, nor do I follow what you do with the array in the loop. Why not start simple and get the query to work before messing with arrays?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.