1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') group by products_id) c' at line 26
select count(*) as total from (select p.products_quantity
, p.products_model
, m.manufacturers_name
, p.products_image
, pd.products_name
, p.scale
, p.products_id
, 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
, p2c.categories_id
from products_description pd
join products p
on p.products_id = pd.products_id
left join manufacturers m
on p.manufacturers_id = m.manufacturers_id
join products_to_categories p2c
on p2c.products_id = p.products_id
left join specials s
on p.products_id = s.products_id
where p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and () group by products_id) 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
, p.scale
, p.products_id
, 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
, p2c.categories_id
from products_description pd
join products p
on p.products_id = pd.products_id
left join manufacturers m
on p.manufacturers_id = m.manufacturers_id
join products_to_categories p2c
on p2c.products_id = p.products_id
left join specials s
on p.products_id = s.products_id
where p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and () group by products_id) c
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') group by products_id) c' at line 26
)
)
[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
, p.scale
, p.products_id
, 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
, p2c.categories_id
from products_description pd
join products p
on p.products_id = pd.products_id
left join manufacturers m
on p.manufacturers_id = m.manufacturers_id
join products_to_categories p2c
on p2c.products_id = p.products_id
left join specials s
on p.products_id = s.products_id
where p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and () group by products_id) 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
, p.scale
, p.products_id
, 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
, p2c.categories_id
from products_description pd
join products p
on p.products_id = pd.products_id
left join manufacturers m
on p.manufacturers_id = m.manufacturers_id
join products_to_categories p2c
on p2c.products_id = p.products_id
left join specials s
on p.products_id = s.products_id
where p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and () group by products_id
[number_of_rows] =>
[current_page_number] => 1
[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
, p.scale
, p.products_id
, 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
, p2c.categories_id
from products_description pd
JOIN products p
ON p.products_id = pd.products_id
left join manufacturers m
on p.manufacturers_id = m.manufacturers_id
JOIN products_to_categories p2c
ON p2c.products_id = p.products_id
left join specials s
on p.products_id = s.products_id
where p.products_id = p2c.products_id
and pd.products_id = p2c.products_id
and pd.language_id = '1'
and () group by products_id
[1] => 20
[2] => p.products_id
)
)
[3] => Array
(
[file] => /var/www/html/product_info.php
[line] => 689
[args] => Array
(
[0] => /var/www/html/includes/modules/product_listing.php
)
[function] => require
)
)
|