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

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_mysql_d2af201abcce421f996aa2bd76dd36da FROM 'select count(*) from slide_bn_items slide_item inner join( m_item master_item inner join m_category category on master_item.category = category.id inner join m_brand brand on master_item.brand = brand.id inner join m_model model on master_item.model = model.id ) on slide_item.item = master_item.id where master_item.public = 1 and master_item.del = 0 and slide_item.slide_bn = 124 and master_item.brand in(\\der=) and master_item.stock = 1 '] [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 master_item.stock = 1' at line 1]

DBMS/Debug Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE MDB2_STATEMENT_mysql_d2af201abcce421f996aa2bd76dd36da FROM 'select count(*) from slide_bn_items slide_item inner join( m_item master_item inner join m_category category on master_item.category = category.id inner join m_brand brand on master_item.brand = brand.id inner join m_model model on master_item.model = model.id ) on slide_item.item = master_item.id where master_item.public = 1 and master_item.del = 0 and slide_item.slide_bn = 124 and master_item.brand in(\\der=) and master_item.stock = 1 '] [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 master_item.stock = 1' at line 1]