Trying to get property 'product_name' of non-object