SELECT * FROM `tbl_ecommerce_cat`
SELECT id FROM `tbl_ecommerce_cat` WHERE `url` = ? and status='enable' and hide_category_producer<>1
select `tbl_ecommerce_goods`.id from `tbl_ecommerce_goods` join `tbl_ecommerce_cat_setting` on (`tbl_ecommerce_cat_setting`.good=`tbl_ecommerce_goods`.id) where parent_id is null and `url` = ? and good_off<1