You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND name_cz!="" AND sklad_1_plus>0' at line 1
SELECT product_id FROM products WHERE group_id IN () AND name_cz!="" AND sklad_1_plus>0