select type_id from pb_types order by sort_order select type_id, name, pretty_name, pretty_plural, tablename, id_column, name_pretty, title_pretty, descr_pretty from pb_types where type_id = :type_id