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 P.productID != 43287 AND P.Price > 0 AND meta_keywords_ru = "" ' at line 3
SELECT * FROM SC_products P LEFT JOIN SC_product_pictures I ON (I.photoID = P.default_picture) WHERE P.categoryID IN () AND P.productID != 43287 AND P.Price > 0 AND meta_keywords_ru = "" ORDER by ABS(P.Price-227.01) LIMIT 5