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 ')) ORDER BY Price DESC LIMIT 0,12' at line 1
SELECT SQL_CALC_FOUND_ROWS p.*, name_ru AS _name_sort FROM SC_products p WHERE (categoryID IN (593)) AND ( enabled=1 AND ordering_available=1 AND p.categoryID NOT IN ()) ORDER BY Price DESC LIMIT 0,12