select name, category_id from ttracker_categories where package_id = :package_id order by name select name, value, function, option_id from ttracker_options where package_id = :package_id order by function,value