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 '' at line 1
SELECT RTG_NOTE as note, RTG_ID as id FROM ukrbee_gsr_rating WHERE RTG_SHOP_ID = 1 AND RTG_PROD_ID = 152 AND RTG_CUST_ID =