Notice: Undefined index: id in /home/goldend1/public_html/detail.php on line 46

Notice: Undefined index: id in /home/goldend1/public_html/detail.php on line 90
/home/goldend1/public_html/detail.php 92
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY v.id DESC' at line 5

SELECT v.id, v.html
          FROM product2video p2v, video v   
          WHERE p2v.video_id = v.id
            AND p2v.product_id = 
          ORDER BY v.id DESC