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

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_973f5d5f8a98f8288cd56c17c6c05b16 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.stock = 1 and item.price_down = 1\\der= and ( item.number like \'%\ト\ート\バ\ッ\\%\' or item.division like \'%\ト\ート\バ\ッ\\%\' or item.name like \'%\ト\ート\バ\ッ\\%\' or item.serial like \'%\ト\ート\バ\ッ\\%\' or item.setsumei like \'%\ト\ート\バ\ッ\\%\' or item.jotai like \'%\ト\ート\バ\ッ\\%\' or item.fuzokuhin like \'%\ト\ート\バ\ッ\\%\' or item.hosho like \'%\ト\ート\バ\ッ\\%\' or item.mente like \'%\ト\ート\バ\ッ\\%\' or item.teido like \'%\ト\ート\バ\ッ\\%\' or item.kikou like \'%\ト\ート\バ\ッ\\%\' or item.casekei like \'%\ト\ート\バ\ッ\\%\' or item.udemawari like \'%\ト\ート\バ\ッ\\%\' or item.mojiban like \'%\ト\ート\バ\ッ\\%\' or item.color like \'%\ト\ート\バ\ッ\\%\' or item.size like \'%\ト\ート\バ\ッ\\%\' or item.tokucho like \'%\ト\ート\バ\ッ\\%\' or item.juryo like \'%\ト\ート\バ\ッ\\%\' or item.keisoku_size like \'%\ト\ート\バ\ッ\\%\' or brand.name like \'%\ト\ート\バ\ッ\\%\' or model.name like \'%\ト\ート\バ\ッ\\%\') '] [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.number like '%トートバッグ%' or item.division like '%トート' at line 1]

DBMS/Debug Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE MDB2_STATEMENT_mysql_973f5d5f8a98f8288cd56c17c6c05b16 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.stock = 1 and item.price_down = 1\\der= and ( item.number like \'%\ト\ート\バ\ッ\\%\' or item.division like \'%\ト\ート\バ\ッ\\%\' or item.name like \'%\ト\ート\バ\ッ\\%\' or item.serial like \'%\ト\ート\バ\ッ\\%\' or item.setsumei like \'%\ト\ート\バ\ッ\\%\' or item.jotai like \'%\ト\ート\バ\ッ\\%\' or item.fuzokuhin like \'%\ト\ート\バ\ッ\\%\' or item.hosho like \'%\ト\ート\バ\ッ\\%\' or item.mente like \'%\ト\ート\バ\ッ\\%\' or item.teido like \'%\ト\ート\バ\ッ\\%\' or item.kikou like \'%\ト\ート\バ\ッ\\%\' or item.casekei like \'%\ト\ート\バ\ッ\\%\' or item.udemawari like \'%\ト\ート\バ\ッ\\%\' or item.mojiban like \'%\ト\ート\バ\ッ\\%\' or item.color like \'%\ト\ート\バ\ッ\\%\' or item.size like \'%\ト\ート\バ\ッ\\%\' or item.tokucho like \'%\ト\ート\バ\ッ\\%\' or item.juryo like \'%\ト\ート\バ\ッ\\%\' or item.keisoku_size like \'%\ト\ート\バ\ッ\\%\' or brand.name like \'%\ト\ート\バ\ッ\\%\' or model.name like \'%\ト\ート\バ\ッ\\%\') '] [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.number like '%トートバッグ%' or item.division like '%トート' at line 1]