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 'and cmsg_instance=1' at line 1 v query: select cmsg_name,cmsg_order,cmsg_parent_id,cmsg_picture_id, cmsg_text1, eshop_path.* from cms_galery left join cms_galery_picture on cmsg_picture_cmsg_id=cmsg_id and cmsg_picture_instance=1 left join eshop_path on eshop_path_cms_galery_id=cmsg_id and eshop_path_instance=1 where cmsg_id= and cmsg_instance=1