Query Error: 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 pvg.id_param IN (2) order by pv.nazev' at line 1
Query: "select distinct pvg.id_param, pvg.id_parvalue, pv.nazev from prod_vz_goods pvg left join param_values pv on pvg.id_parvalue=pv.id_parvalue where pvg.sync_var=1 and id_prod= and pvg.id_param IN (2) order by pv.nazev"