added categories status check to infobox listing sql return