syntax error: SELECT c.id, c.title_one, c.alias_one FROM table_category c LEFT JOIN table_brand_cate_type bct ON c.id = bct.cate_type WHERE bct.brand_cate = AND c.active = 1 ORDER BY c.no, c.title_one, c.id DESC