jtbp.owner_id as ownerId, jtbp.is_hot as isHot, jtbp.audit_status as auditStatus, jtbp.audit_info as auditInfo, jtbp.release_date as releaseDate,jtbc.module as module,jtbp.advertisement
from jt_business_project jtbp left join `user` u on jtbp.owner_id=u.id
left join jt_business_category jtbc on jtbc.id = jtbp.category_id
- left join (select project_id,count(*) as count from project_interest) p on jtbp.id=p.project_id
+ left join (select project_id,count(*) as count from project_interest group by project_id) p on jtbp.id=p.project_id