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 1

SELECT SUM(`cena`) AS `prip_sluzby` FROM `ps_re_priplatkove_sluzby_kosik` WHERE `id_cart`=