Catched error 40642000: SQLSTATE[42000]: Syntax error or access violation: 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 tb.id' at line 1
in /home/sergefas/public_html/protected/classes/DataBase.php on line 76.
Query: 'SELECT tb_lang.name FROM `params` `tb` LEFT JOIN `ru_params` tb_lang ON tb.id=tb_lang.params_id LEFT JOIN params_product pp ON pp.params_id = tb.id WHERE tb.sub=2855 AND pp.product_id= GROUP BY tb.id '