プリペアードステートメントで失敗しました。処理を中止します。

Standard Message: MDB2 Error: syntax error

Standard Code: -2

DBMS/User Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE mdb2_statement_mysqli_59b2ad035e9db4ae17f64d4f6372d1130e8c7f878 FROM 'select brand_list.category, master_brand.id, master_brand.name, char_length(master_brand.name) as brand_length, brand_list.rank from brands brand_list inner join m_brand master_brand on brand_list.brand = master_brand.id inner join m_category master_category on brand_list.category = master_category.id where brand_list.category = and brand_list.other = 0 and master_category.del = 0 and master_brand.del = 0 order by brand_list.rank asc '] [Native code: 1064] [Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and brand_list.other = 0 and master_category.del = 0 and master_brand.del = 0 or' at line 1]

DBMS/Debug Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE mdb2_statement_mysqli_59b2ad035e9db4ae17f64d4f6372d1130e8c7f878 FROM 'select brand_list.category, master_brand.id, master_brand.name, char_length(master_brand.name) as brand_length, brand_list.rank from brands brand_list inner join m_brand master_brand on brand_list.brand = master_brand.id inner join m_category master_category on brand_list.category = master_category.id where brand_list.category = and brand_list.other = 0 and master_category.del = 0 and master_brand.del = 0 order by brand_list.rank asc '] [Native code: 1064] [Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and brand_list.other = 0 and master_category.del = 0 and master_brand.del = 0 or' at line 1]