1054 - Unknown column 'c.categories_id' in 'on clause'
select count(*) as total from (select p.products_quantity, p.products_model, m.manufacturers_name, p.products_image, pd.products_name, cd.categories_scale scale, p2c.categories_id, p.products_id, p.railroad, p.manufacturers_id, p.products_price, p.products_tax_class_id, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price, if(year(p.products_date_added) = year(now()), year(now()), 0) is_new from products p join products_description pd on pd.products_id = p.products_id join manufacturers m on m.manufacturers_id = p.products_id join products_to_categories p2c on p2c.products_id = p.products_id left join specials s on p.products_id = s.products_id join categories_description cd on cd.categories_id = c.categories_id where p2c.categories_id = cd.categories_id and pd.products_name != 'desc' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '10' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '143' group by p.products_model order by p.products_model , pd.products_name) c
[TEP STOP]
Array
(
[0] => Array
(
[file] => /var/www/html/includes/functions/database.php
[line] => 46
[function] => tep_db_error
[args] => Array
(
[0] => select count(*) as total from (select p.products_quantity, p.products_model, m.manufacturers_name, p.products_image, pd.products_name, cd.categories_scale scale, p2c.categories_id, p.products_id, p.railroad, p.manufacturers_id, p.products_price, p.products_tax_class_id, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price, if(year(p.products_date_added) = year(now()), year(now()), 0) is_new from products p join products_description pd on pd.products_id = p.products_id join manufacturers m on m.manufacturers_id = p.products_id join products_to_categories p2c on p2c.products_id = p.products_id left join specials s on p.products_id = s.products_id join categories_description cd on cd.categories_id = c.categories_id where p2c.categories_id = cd.categories_id and pd.products_name != 'desc' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '10' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '143' group by p.products_model order by p.products_model , pd.products_name) c
[1] => 1054
[2] => Unknown column 'c.categories_id' in 'on clause'
)
)
[1] => Array
(
[file] => /var/www/html/includes/classes/split_page_results.php
[line] => 65
[function] => tep_db_query
[args] => Array
(
[0] => select count(*) as total from (select p.products_quantity, p.products_model, m.manufacturers_name, p.products_image, pd.products_name, cd.categories_scale scale, p2c.categories_id, p.products_id, p.railroad, p.manufacturers_id, p.products_price, p.products_tax_class_id, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price, if(year(p.products_date_added) = year(now()), year(now()), 0) is_new from products p join products_description pd on pd.products_id = p.products_id join manufacturers m on m.manufacturers_id = p.products_id join products_to_categories p2c on p2c.products_id = p.products_id left join specials s on p.products_id = s.products_id join categories_description cd on cd.categories_id = c.categories_id where p2c.categories_id = cd.categories_id and pd.products_name != 'desc' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '10' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '143' group by p.products_model order by p.products_model , pd.products_name) c
)
)
[2] => Array
(
[file] => /var/www/html/includes/modules/product_listing.php
[line] => 18
[function] => splitPageResults
[class] => splitPageResults
[object] => splitPageResults Object
(
[sql_query] => select p.products_quantity, p.products_model, m.manufacturers_name, p.products_image, pd.products_name, cd.categories_scale scale, p2c.categories_id, p.products_id, p.railroad, p.manufacturers_id, p.products_price, p.products_tax_class_id, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price, if(year(p.products_date_added) = year(now()), year(now()), 0) is_new from products p join products_description pd on pd.products_id = p.products_id join manufacturers m on m.manufacturers_id = p.products_id join products_to_categories p2c on p2c.products_id = p.products_id left join specials s on p.products_id = s.products_id join categories_description cd on cd.categories_id = c.categories_id where p2c.categories_id = cd.categories_id and pd.products_name != 'desc' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '10' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '143' group by p.products_model order by p.products_model , pd.products_name
[number_of_rows] =>
[current_page_number] => 2
[number_of_pages] =>
[number_of_rows_per_page] => 20
[page_name] => page
)
[type] => ->
[args] => Array
(
[0] => select p.products_quantity, p.products_model, m.manufacturers_name, p.products_image, pd.products_name, cd.categories_scale scale, p2c.categories_id, p.products_id, p.railroad, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, IF(YEAR(p.products_date_added) = YEAR(NOW()), YEAR(NOW()), 0) is_new from products p JOIN products_description pd ON pd.products_id = p.products_id JOIN manufacturers m ON m.manufacturers_id = p.products_id JOIN products_to_categories p2c ON p2c.products_id = p.products_id left join specials s on p.products_id = s.products_id JOIN categories_description cd ON cd.categories_id = c.categories_id where p2c.categories_id = cd.categories_id and pd.products_name != 'desc' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '10' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '143' group by p.products_model order by p.products_model , pd.products_name
[1] => 20
[2] => p.products_id
)
)
[3] => Array
(
[file] => /var/www/html/index.php
[line] => 524
[args] => Array
(
[0] => /var/www/html/includes/modules/product_listing.php
)
[function] => include
)
)
|