You are using the non-prepared query(). I thought that
$q = $conn->query("SELECT * FROM PDO");
preduces a query on the SQL and
$stmt = $conn->prepare($q);
$stmt->execute();
is needed to get the data. This is code given to me by the forum phpfreaks.