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

Standard Message: MDB2 Error: no such field

Standard Code: -19

DBMS/User Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE mdb2_statement_mysqli_99587609b9062dc66b41dc57147aa11eb1470e532 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.model != 0 and item.category = 1 and item.brand = lib '] [Native code: 1054] [Native message: Unknown column 'lib' in 'where clause']

DBMS/Debug Message: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE mdb2_statement_mysqli_99587609b9062dc66b41dc57147aa11eb1470e532 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.model != 0 and item.category = 1 and item.brand = lib '] [Native code: 1054] [Native message: Unknown column 'lib' in 'where clause']