I am trying to add the product_id and model to the shopping cart form. I have this code:

PHP Code:
<?php echo '<li>Part#' TEXT_OPTION_DIVIDER $product['id'] . '</li>';
                        
$products_model $db->Execute("SELECT products_model FROM " TABLE_PRODUCTS " WHERE products_id = " $product['id'] . " LIMIT 1;");
                          if (
$products_model->RecordCount() > 0) {
                            
$products_model $products_model->fields['products_model'];  
                            echo 
'<li>Mfg Part#' TEXT_OPTION_DIVIDER $products_model '</li>';
                          } 
?>
It worked fine; until I tested it with a product that has attributes.

If I add a product with attribute I get this error

Code:
Part# - 2791:3b55bc83a02d362882e9292dddf7eb29
1064 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 ':3b55bc83a02d362882e9292dddf7eb29 LIMIT 1' at line 1
in:
[SELECT products_model FROM products WHERE products_id = 2791:3b55bc83a02d362882e9292dddf7eb29 LIMIT 1;]
Any idea how to fix this.