So here is my query:
!mysqli_query($connection,"REPLACE into reminders (news_id,usr_id,news_start,reminder_sent) (SELECT '$_POST[listid]','$_POST[usrid]',news_start_date,'N' from news_items where news_id='$_POST[listid]')"))
And it keeps putting new records in the database which are identical to each other.
So I'm a bit stumped.
Rob