Something is wrong in your syntax obok '2 AND (v_products.endTime > '2024-18-04 03:40:59' OR v_products.endTime = '00...' w linii 3