Something is wrong in your syntax obok '2 AND (v_products.endTime > '2020-30-05 20:04:44' OR v_products.endTime = '0000-' w linii 3