select st_id,st_field_name,st_field_display_header,st_field_order,st_field_display_format,st_visible,st_field_display_name,st_field_type,st_field_length,sh_name,sh_order,st_weight from spec_tracker,spec_headers where sh_id=st_field_display_header and sh_spec_type_id= and st_visible=1 order by sh_order,st_field_order