select distinct (bname),brimg,bid from brands,catedetail where catedetail.ecate=brands.ecate and brimg<>'-' and catedid=52 order by rand() limit 10

Men Dresses -> T- Shirts

PHP Fatal error: Internal zval's can't be arrays, objects or resources in Unknown on line 0