A Database Error Occurred

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 `id` <> 13937 AND `publishup` <= 1566786284 ORDER BY `publishup` DESC LIM...' at line 17

SELECT `id`, `permalink`, `title`, `summery`, `content`, `active`, `catcode`, `tagcode`, `hits`, `publish`, `publishup`, `publishdown`, `itemcode`, `itemtype` FROM `news` WHERE `active`=1 AND ((`publishdown` IS NOT NULL AND `publishdown` >= UNIX_TIMESTAMP() OR `publishdown` IS NULL OR `publishdown` =0)) AND `catcode` like '%' AND `itemtype` = '1' AND `catcode` = AND `id` <> 13937 AND `publishup` <= 1566786284 ORDER BY `publishup` DESC LIMIT 0, 5

Filename: models/MNews.php

Line Number: 183