what line of code i have to add to output the exact value from database table filed , like we have a filed name category_id it contains values in numeric numbers but names in some other table
if i write {$listing_data.Category_ID} it outputs value but not name , what i have to write to output the name of the category , there are some select fields also similar to this containing values but when i write {$listing_data.projects_types} it outputs numeric values but not exact name

Please Help what line of code to add to echo exact value and not there respective ID's