How to fetch results from database

There is likely no “cp_job” column like you are thinking. extra data/information about a wordpress post type (it looks like ads is a custom post type here) would be stored as post meta in the database.

So you might see something in the wp_post_meta table like:

meta_id | post_id | meta_key | meta_value
XX | XX | _cp_ad_type | buyer

Once you know the name of the meta key you are looking for, you can query for this data using a WP Query. Pay extra attention to the section called Custom Field Parameters which describes how to do a meta query