@@ -9,7 +9,7 @@
t.event_type,
t.org_id,
t.create_date,
- sum( IF ( p.photo IS NOT NULL OR p.tel IS NOT NULL, 1, 0 ) ) AS registered_num
+ sum( IF ( p.phone IS NOT NULL OR p.tel IS NOT NULL, 1, 0 ) ) AS registered_num
FROM
ta_person_from_record t
LEFT JOIN ta_person p ON t.person_id = p.person_id