Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/jf9111/walltowallstencils.com/mymarket/lib/dblib.php on line 78

Can't execute query

SELECT
		 p.id
		,p.stencil
		,p.description
		,p.price
		,p.on_special
		,p.size
		,p.tnsizew
		,p.tnsizeh
		,p.details
		,p.color_suggest
		
	FROM
		 products p
		
	WHERE p.id = '1341'
					OR
			p.id = '805'
					OR
			p.id = '806'
					OR
			p.id = '792'
					OR
			p.id = '794'
					OR
			p.id = '756'
					OR
			p.id = '757'
					OR
			p.id = '758'
					OR
			p.id = '759'
					OR
			p.id = '760'
					OR
			p.id = '761'
					OR
			p.id = '542'
					OR
			p.id = '400'
					OR
			p.id = '401'
					OR
			p.id = '406'
					OR
			p.id = '408'
					OR
			p.id = '1741'
					OR
			p.id = '1736'
					OR
			p.id = '1737'
					OR
			p.id = '1738'
					OR
			p.id = '1739'
	ORDER BY 
		rank DESC
		,ID
	

MySQL Error:

This script cannot continue, terminating.