I'm currently doing this query, however, I'm always getting a result where there should be none, because there's a corresponding row.
select `likes`.*, `likeshistory`.`like_id`, `likeshistory`.`instagram_id` from `likes` join `likeshistory` on `likes`.`id` = `likeshistory`.`like_id` where (`finished` = '0' and `active` = '1' and `banned` = '0') and `instagram_id` not in ('2') limit 1
Basically I want to select one "likes" that has no "likeshistory" for (instagram_id = 2)
Thank you! William