query_read('manga_name ASC', 50000, 1); } catch (\PDOException $e) { $mangas = (object)['num_rows' => 0]; $mangas_obj = []; } try { // TODO: This is a bit awkward, a proper rework of this section should fix this $groups = new Groups(); $groups_obj = $groups->query_read('group_name ASC', 10000, 1); } catch (\PDOException $e) { $groups = (object)['num_rows' => 0]; $groups_obj = []; } ob_start(); ?> xml version="1.0" encoding="UTF-8"?> titles groups title/manga_id ?>/manga_name) ?> group/group_id ?>/group_name) ?>