SELECT *,(CHAR_LENGTH(related_pro_cat) - CHAR_LENGTH(REPLACE(related_pro_cat, ',', '')) + 1) as total FROM #__articles WHERE ((find_in_set('191', cast(related_pro_cat as char)) > 0 and find_in_set('155', cast(related_pro_cat as char)) > 0)) AND article_id !=1389 AND is_suggestion=1 AND article_status=1 order by total DESC limit 8