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 = 6
			

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 = 6' at line 4

file -
line -