I need a query for PHP or an idea for this.
I have two tables:
News
ID MAME
--------
1 Test
2 Test1
3 Test2
4 Test3
7 Test3
Products
ID NAME PRICE
-------------
1 Test 11
9 Test2 22
8 Test4 122
I need to delete records from Products where ID doesn't exist in News.
Can someone help me with some ideas?
Thanks for your time!