发生了一个数据库错误

Error Number: 1064

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 `id` != 99) or (`sort` = and `id`>99)) and `classid` IS NULL ORDER BY `sort`' at line 3

SELECT `id`, `title` FROM `bhhy_info` WHERE `display` = 1 and ((`sort` < and `id` != 99) or (`sort` = and `id`>99)) and `classid` IS NULL ORDER BY `sort` desc, `id` asc

Filename: models/home/Home_info_model.php

Line Number: 102