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=12017 and msg='3' group by StandardID) b on a.StandardID=b.StandardID where b.icount is not NULL
We are a pet chew producer in South Africa producing smoked pig''s ears, dried tendons, Liver Biltong/Jerky etc. If you are interested please send me your contact details.