Loading...

Database error: Expression #46 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'clampasi_eshop.products_categories.position' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (1055)
Invalid query: SELECT SQL_CALC_FOUND_ROWS products.*, descr1.product as product, MIN(prices.price) as price, GROUP_CONCAT(IF(products_categories.link_type = 'M', CONCAT(products_categories.category_id, 'M'), products_categories.category_id)) as category_ids, products_categories.position, magicdust_seo_names.name as seo_name, IF(products.age_verification = 'Y', 'Y', IF(magicdust_categories.age_verification = 'Y', 'Y', magicdust_categories.parent_age_verification)) as age_verification, IF(products.age_limit > magicdust_categories.age_limit, IF(products.age_limit > magicdust_categories.parent_age_limit, products.age_limit, magicdust_categories.parent_age_limit), IF(magicdust_categories.age_limit > magicdust_categories.parent_age_limit, magicdust_categories.age_limit, magicdust_categories.parent_age_limit)) as age_limit FROM magicdust_products as products LEFT JOIN magicdust_product_descriptions as descr1 ON descr1.product_id = products.product_id AND descr1.lang_code = 'EN' LEFT JOIN magicdust_product_prices as prices ON prices.product_id = products.product_id AND prices.lower_limit = 1 INNER JOIN magicdust_products_categories as products_categories ON products_categories.product_id = products.product_id INNER JOIN magicdust_categories ON magicdust_categories.category_id = products_categories.category_id AND (magicdust_categories.usergroup_ids = '' OR FIND_IN_SET(0, magicdust_categories.usergroup_ids) OR FIND_IN_SET(1, magicdust_categories.usergroup_ids)) AND magicdust_categories.status IN ('A', 'H') LEFT JOIN magicdust_seo_names ON magicdust_seo_names.object_id = products.product_id AND magicdust_seo_names.type = 'p' AND magicdust_seo_names.dispatch = '' AND magicdust_seo_names.lang_code = 'EN' WHERE 1 AND products.company_id = 0 AND products.product_id IN (78, 73, 77) AND (products.usergroup_ids = '' OR FIND_IN_SET(0, products.usergroup_ids) OR FIND_IN_SET(1, products.usergroup_ids)) AND products.status IN ('A') AND prices.usergroup_id IN (0, 0, 1) GROUP BY products.product_id ORDER BY products_categories.position asc


Backtrace:

File:/home/clampasi/public_html/core/fn.database.php
Line:259
Function:db_error
File:/home/clampasi/public_html/core/fn.database.php
Line:29
Function:db_query
File:/home/clampasi/public_html/core/fn.catalog.php
Line:3794
Function:db_get_array
File:/home/clampasi/public_html/core/fn.cms.php
Line:754
Function:fn_get_products
File:/home/clampasi/public_html/core/templater_plugins/function.block.php
Line:269
Function:fn_get_block_items
File:/home/clampasi/public_html/core/templater_plugins/function.block.php
Line:65
Function:smarty_function_block_output
File:/home/clampasi/public_html/core/templater_plugins/function.block.php
Line:33
Function:smarty_function_group_output
File:/home/clampasi/public_html/var/compiled/customer/%%72^72D^72DAF6E8%%main.tpl.php
Line:11
Function:smarty_function_block
File:/home/clampasi/public_html/core/class.templater.php
Line:105
Function:include
File:/home/clampasi/public_html/var/compiled/customer/%%45^45E^45E480CD%%index.tpl.php
Line:375
Function:_smarty_include
File:/home/clampasi/public_html/lib/templater/Smarty.class.php
Line:1258
Function:include
File:/home/clampasi/public_html/lib/templater/Smarty.class.php
Line:1108
Function:fetch
File:/home/clampasi/public_html/core/class.templater.php
Line:141
Function:display
File:/home/clampasi/public_html/core/fn.control.php
Line:518
Function:display
File:/home/clampasi/public_html/index.php
Line:36
Function:fn_dispatch