Query: SELECT * FROM ms_cart LEFT JOIN ms_photos ON ms_cart.cart_pic_id=ms_photos.pic_id LEFT JOIN ms_blog_categories ON ms_photos.pic_category=ms_blog_categories.cat_id WHERE cart_session='23206013820170818010231' AND cart_client='' AND pic_category>='0' AND shipping_group>'0' AND cart_order<='0'