Chyba pocas behu aplikacie: 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 'order by pricelist_lastupdate desc, pricelist_id limit 0,1' at line 1 -> select A.*, lvat_percent, (select sum(wi_amount) as my_amount from warehouse_item join warehouse on warehouse_mw_id=2 and warehouse_recordactive=1 and (warehouse_type=0 or warehouse_type=3) where wi_recordactive=1 and wi_product_id = A.product_id) as warehouse_plus, (select sum(wi_amount) as my_amount from warehouse_item join warehouse on warehouse_mw_id=2 and warehouse_recordactive=1 and (warehouse_type=1 or warehouse_type=4) where wi_recordactive=1 and wi_product_id= A.product_id) as warehouse_minus, pricelist_price1, pricelist_price2, pricelist_recsell, catalogue_url from product A join pricelist on pricelist_product_id = A.product_id and pricelist_recordactive = 1 and pricelist_lcurrency_id = 1 join lib_vat on lvat_id = A.product_lvat_id join catalogue on catalogue_product_id = A.product_id and catalogue_recordactive=1 and catalogue_index like '%|26285|%' where A.product_id = order by pricelist_lastupdate desc, pricelist_id limit 0,1