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 '' at line 3
in datasource id..2191..tag..get_pricelist_data..
on SQL Command :
SELECT pricelist_id, catalogue_id, default_catalogue_pricelist, pricelist_name, sales_tax_included, sales_tax_code
FROM cat_pricelist
WHERE pricelist_id =