SELECT p.name, p.id, p.ref, p.price, p.price_promo, p.promo FROM products_params p WHERE p.product_id = AND p.id = 13
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 'AND p.id = 13' at line 4