error in sql query
				SELECT products.*, catalog.name AS cat_name FROM products
				INNER JOIN products_categories ON products_categories.pid = products.pid AND ( products_categories.cid='257' )
				INNER JOIN catalog ON products.cid=catalog.cid
				WHERE products.is_visible='Yes' 
				GROUP BY products.pid
				ORDER BY products.title
				LIMIT 0, 20
			
.mysql error : Got error -1 from storage engine