Use PDO prepared statement and return PDO::FETCH_ASSOC.