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

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_0d46197f8423c3cf591296311713a49a FROM 'select count(*) from m_item item inner join brands brands on item.category = brands.category and item.brand = brands.brand inner join m_category category on item.category = category.id inner join m_brand brand on item.brand = brand.id inner join m_model model on item.model = model.id where item.public = 1 and item.del = 0 and item.price_down = \\der= and item.category = 3 and item.brand = 58 '] [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 item.category = 3 and item.brand = 58' at line 1]

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