Database error: Invalid SQL: SELECT DISTINCT(YEAR(cen_prod_fulfilled_end) ) as lata FROM cen_produkty JOIN ( SELECT cen_pow_prod_id FROM cen_powiazania WHERE cen_pow_kat_id IN ( 25, ) GROUP BY cen_pow_prod_id HAVING count( * ) = 2 ) AS p ON cen_prod_id = p.cen_pow_prod_id ORDER BY cen_prod_fulfilled_end DESC
PostgreSQL Error: 1 (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 ') GROUP BY cen_pow_prod_id HAVING count( * ) = 2 ) AS p ON cen_prod_id = p.cen_p' at line 1)
Session halted.