Error in Selection query SELECT a.matri_id, a.mem_fullname,a.mem_age, b.mem_edu,a.mem_phot_self FROM tbl_member AS a INNER JOIN tbl_mem_edu AS b ON b.matri_id = a.matri_id where a.mem_status = 'Approved' AND a.mem_phot_self <> '' AND a.admin_app_phot = 'Yes' AND a.mem_feature_status = 'Yes' LIMIT 0 , 21