$sql = "SELECT goods_id, goods_name, goods_type, goods_sn, virtual_sales, shop_price, is_on_sale, is_best, is_new, is_hot, sort_order, goods_number, integral, " .
                    " (promote_price > 0 AND promote_start_date <= '$today' AND promote_end_date >= '$today')  ".
                    " As is_promote,b.brand_name FROM".$GLOBAs['ecs']->table('goods')."AS g".
" LEFT JOIN".$GLOBAs['ecs']->table('goods')."AS b on g.brand_id = b.brand_id".
" WHERE is_delete='$is_delete' $where" .
                    " ORDER BY $filter[sort_by] $filter[sort_order] ".
                    " LIMIT " . $filter['start'] . ",$filter[page_size]";报错