public function query($option, $table, $mode) { if (is_array($option)) { $option = implode(',', $option); } $query = Model::prep("SELECT {$option} FROM {$table}"); $query->execute(); $query->setFetchMode($mode); return $query->fetchAll(); }