Dotmedia error handler

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 '-6, 6' at line 3 - SELECT product.*, (SELECT DATE_FORMAT(date, '%d.%m.%Y') FROM promotion) AS promotionDate, CASE (SELECT `date` >= DAY(NOW()) FROM promotion ) WHEN true THEN promoPrice ELSE null END AS promotionPrice FROM product_cat INNER JOIN product ON product_cat.id = categoryid WHERE (product.active = 1 AND product_cat.active = 1 AND product_cat.id in (25)) ORDER BY product.weight LIMIT -6, 6 Bug report
Show/Hide backtrace