SELECT a.StandardID,a.ProductName_e,b.icount FROM t_standard a left join (select count(id) as iCount,max(StandardID) as StandardID from Tproduct where userid=40958 and msg='3' group by StandardID) b on a.StandardID=b.StandardID where b.icount is not NULL
ANKIT EXPORTS established in 2008, We are leading manufacturer and exporter for horse and Dog Products. if you have any query- please email me ankit.exports@hotmail.com Or Cal Me 0091 9839508303