SELECT et.id as entry_id,et.date_created, pt.appointment_id FROM wp_gf_entry as et inner join wp_gfb_payments_mst as pt on et.id = pt.entry_id WHERE et.form_id=1 and et.status!='trash' and pt.is_deleted=0SELECT et.id as entry_id,et.date_created FROM wp_gf_entry as et where et.form_id=1 and et.status!='trash'
Array
(
)