PDO fetchAll Get sql results array and not stdClass http://php.net/manual/en/pdostatement.fetchall.php
/* Fetch all of the values of the first column */ $result = $sth->fetchAll(PDO::FETCH_COLUMN, 0);