public function fetchPairs($spec, $data = array()) { $result = $this->fetchPdo($spec, $data); $data = array(); while ($row = $result->fetch(PDO::FETCH_NUM)) { $data[$row[0]] = $row[1]; } return $data; }