SELECT *,bill_number,doctor.name as doctor_name,patient.name as patient_name,modeofpay.name as modeofpay,user_details.username as user_name from ip_sales AND general_billing