SQLSTATE[42000]: Syntax error or access violation: 1370 execute command denied to user 'u.seacsub'@'localhost' for routine 'seacsub_test_db.productPrice'
SELECT SQL_CALC_FOUND_ROWS tp.code_master AS code, tpd.name_it AS name, tpd.title_it AS title, tpd.excerpt_it AS excerpt, tpd.description_it AS description, tpd.name_it AS name_default, tpd.title_it AS title_default, tpd.excerpt_it AS excerpt_default, tpd.description_it AS description_default, tp.family_code, tfp.name_it AS family_name, tfp.name_it AS family_name_default, tp.season_code, tp.gender_code, tpd.meta_title_it AS meta_title, tpd.meta_keywords_it AS meta_keywords, tpd.meta_description_it AS meta_description, tpd.meta_title_it AS meta_title_default, tpd.meta_keywords_it AS meta_keywords_default, tpd.meta_description_it AS meta_description_default, tctp.label_variant1_it AS label_variant1, tctp.label_variant2_it AS label_variant2, tctp.label_variant1_it AS label_variant1_default, tctp.label_variant2_it AS label_variant2_default, tctp.variant_image, tp.own_production, tp.pack, tpd.default_variant1, MAX(tppl.discount1) AS discount1, MAX(tppl.discount2) AS discount2, MIN(tppl.price) AS original_price, tppl.currency, MIN(productPrice(tppl.price,tppl.discount1,tppl.discount2)) AS price, tp.code AS product_image_code FROM tbl_products tp INNER JOIN tbl_products_descriptions tpd ON (tpd.product_code_master = tp.code_master) INNER JOIN tbl_families_product tfp ON (tp.family_code = tfp.code) INNER JOIN tbl_categories_product tctp ON (tp.category_code = tctp.code) LEFT OUTER JOIN tbl_products_price_lists tppl ON (tppl.product_code = tp.code AND tppl.company_code = 1 AND tppl.currency = "99" AND tppl.code = "-1") LEFT OUTER JOIN tbl_products_price_lists tppl_c ON (tppl_c.product_code = tp.code AND tppl_c.company_code = 1 AND tppl_c.currency = '99' AND tppl_c.code = '01') LEFT OUTER JOIN tbl_products_catalog_categories tpcct ON (tp.code = tpcct.product_code) LEFT OUTER JOIN tbl_catalog_categories_product tcctp ON (tcctp.id = tpcct.category_id) WHERE tfp.enabled = 1 AND tctp.enabled = 1 AND tp.enabled = 1 AND tppl_c.price > 0 AND tcctp.nright <= 25 and tcctp.nleft >= 24 GROUP BY tp.code_master ORDER BY tpd.sorting asc LIMIT 0, 8