Can't execute query

SELECT o.total_price, SUM(s.shipping_price) AS shipping_price 
           FROM eshop_orders o 
           JOIN eshop_suborders s ON s.id_eshop_orders = o.id
           WHERE o.id = 

MySQL Error: 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 4


file: 180 - /home/www/versions/b2c14/ecp_core/lib/dblib.php
call: debug()

file: 4534 - /home/www/versions/b2c14/ecp_core/modules/checkout/functions/Ecp_CheckoutCore.php
call: db_query("SELECT o.total_price, SUM(s.shipping_price) AS shipping_price ...")

file: 43 - /home/www/versions/b2c14/ecp_core/modules/checkout/checkout.php
call: Ecp_CheckoutCore::checkPaymentMethod(Null)

file: 181 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: get_checkout("")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("2")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("35")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("34")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("4")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("50")

file: 187 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("49")

file: 109 - /home/www/versions/b2c14/ecp_core/lib/construct.php
call: construct_children("44")

file: 256 - /home/www/versions/b2c14/ecp_core/index.php
call: construct()

file: 7 - /home/www/svetkaravanu-zaloha-b2c14/index.php
call: require_once("/home/www/versions/b2c14/ecp_core/index.php")
Eshop s příslušenstvím pro karavany - svetkaravanu.cz

Úvod Pokladna

Pokladna

Vybrat další zboží

Nemáte v košíku žádné produkty. Pokud chcete objednat zboží, pokračujte v nákupu.