SQL Query Error (SELECT b.*, i.description, i.name, b.count*im.price as total_price, i.id as i_id, i.ref_image3, im.price as price, im.ref_image2, pg.is_download, i.ref_category FROM basket_items b, items i LEFT JOIN item_modifications im ON (im.id=b.im_id) LEFT JOIN property_groups pg ON pg.id=im.ref_group WHERE b.ref_customer_session='457c2200b3' AND i.id=b.ref_item GROUP BY b.id ORDER BY id) : Unknown column 'b.im_id' in 'on clause'