SELECT SQL_CALC_FOUND_ROWS,, p.slug, pp.price,, pp.price_promo, pp.availability, as param_id, as param_name,

			IF( = 'yes', pp.price_promo, pp.price) as actual_price,

			p.ref_num, p.created_at, pt.meta_description,, p.publisher_id, as publisher,, p.action, p.soon,,

			p.most_sold, as measure

	     FROM products p

	     INNER JOIN products_text pt ON = pt.product_id AND pt.language_id = 1

	       INNER JOIN product_categories pc ON = pc.product_id 

	     INNER JOIN products_params pp ON = pp.product_id

	     LEFT JOIN pages_text pub ON p.publisher_id = pub.page_id AND pub.language_id = 1

	     LEFT JOIN pages_text m ON p.measure_id = m.page_id AND m.language_id = 1

	     WHERE p.status != 'deleted'











	      AND pc.relation_id = 



	     GROUP BY


	     LIMIT 15 OFFSET 0


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


	     LIMIT 15 OFFSET 0' at line 58

file -
line -