Jump to content
xt:Commerce Community Forum

1054 - Unknown column 'p.products_id' in 'on clause'


Recommended Posts

Hallo zusammen,

würde mich freuen, wenn jemand licht ins php-sql-dunkel bringen könnte. Ich habe die Version 3.0.3 installiert.

Ich kriege folgende Fehlermeldung:

1054 - Unknown column 'p.products_id' in 'on clause'

select p.products_fsk18, p.products_shippingtime, p.products_model, p.products_ean, pd.products_name, m.manufacturers_name, p.products_quantity, p.products_image, p.products_weight, pd.products_short_description, pd.products_description, p.products_id, p.manufacturers_id, p.products_price, p.products_discount_allowed, p.products_tax_class_id from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '2' and p2c.categories_id = '5' ORDER BY pd.products_name ASC

[XT SQL Error]

In der index.php sieht es so aus:

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && xtc_not_null($cPath)) {

$categories_products_query = "select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'";

$categories_products_query = xtDBquery($categories_products_query);

$cateqories_products = xtc_db_fetch_array($categories_products_query,true );

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = "select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . $current_category_id . "'";

$category_parent_query = xtDBquery($category_parent_query);

$category_parent = xtc_db_fetch_array($category_parent_query,true);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

Danke und Gruss

gilbena

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...