SELECT pp. *,p.slug 
			FROM products_params pp
			LEFT JOIN products p ON p.id = pp.product_id
			WHERE pp.promo =  'yes' AND p.status='active'
			ORDER BY RAND() 
			

Too many connections

file -
line -