This is the error thrown by the first issue:
Unknown column 'cp.idproductattrbute' in 'on clause'
SELECT cp.`quantity`, cp.`id_product`, pac.`id_attribute`, cp.`id_product_attribute`
FROM `tb_cart_product` cp
LEFT JOIN `tb_product_attribute_combination` `pac` ON cp.`id_product_attrbute` = pac.`id_product_attribute`
WHERE (cp.`id_cart` = 481) AND (cp.`id_product` IN (70,57,41)) AND (cp.`id_product_attribute` > 0)