select a.*,b.* from rah_lender as a JOIN rah_lendinvestment as b ON a.lenderID=b.lenderID
where b.investStatus='swInvestment/CaiWu_ShouKuanGuandan'
and year(from_days( datediff( now( ), a.birthday)))>=40 and year(from_days( datediff( now( ), a.birthday)))<=60
where b.investStatus='swInvestment/CaiWu_ShouKuanGuandan'
and year(from_days( datediff( now( ), a.birthday)))>=40 and year(from_days( datediff( now( ), a.birthday)))<=60