DB was unable to successfully run a query.
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 cat_id=55 AND presence>0 AND hidden=0 ORDER BY IF(cat_id=55,1,0) DESC) AS' at line 1

SELECT good.*, stat.views, stat.rate_count, stat.orders, cat.top_cat FROM (SELECT * FROM ac_goods WHERE id<>462 AND cat_id IN() AND cat_id=55 AND presence>0 AND hidden=0 ORDER BY IF(cat_id=55,1,0) DESC) AS good LEFT JOIN ac_viewsrate AS stat ON stat.module="goods" AND stat.object_id=good.id LEFT JOIN ac_cats AS cat ON cat.id=good.cat_id ORDER BY IF(good.cat_id=55,1,0) DESC, stat.orders DESC, stat.views DESC, stat.rate_count DESC LIMIT 0,4