发生了一个数据库错误

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND `category` = 'site' AND `key` = 'title_suffix' ORDER BY `sort_id` desc' at line 5

SELECT `value` FROM (`boc_product`, `boc_configs`) WHERE `cid` IS NULL AND `sort_id` < AND `category` = 'site' AND `key` = 'title_suffix' ORDER BY `sort_id` desc

Filename: /alidata/www/boc/libs/models/configs_model.php

Line Number: 51