in reply to Loop that creates multidimensional array?

I am not sure of the objective.
In general, an SQL query should get the result.
There is probably some syntax error below, but
this is the general idea.

while ( ($dumb, $guru) = ( ($sth->fetchrow)[0,4]) ) { #do something here....with $dumb and $guru... #maybe push [$dumb,$guru] to another array? #but that could be just another SQL query. }