I know dozen of questions are available here but I have specific issue which I didn't resolve
I have two tables user_bookmarks and highlights.
user_bookmarks contains all the users bookmarks and highlights contains the selected text of particular bookmark.
suppose two users having same bookmarks and both did some highlight texts.
Now user_bookmarks and highlight tables contains two rows of same bokkmark_id.
if one user delete that bookmark then only one row will be deleted from both tables.
I did some query but didn't success.
here is my query
DELETE FROM user_bookmarks,highlights USING user_bookmarks
LEFT JOIN highlights ON user_bookmarks.bookmark_id =
highlights.bookmark_id WHERE user_bookmarks.`user_id` = 39
AND user_bookmarks.`bookmark_id`= 1556
user_bookmarksand single row fromhighlightstable.bookmark_idtends to single article and multiple user can have same article, I also given condition for selected user