The php code only errors out, but I'm going to approach this from a different angle.
I have 3 columns I want to deal with here....
I want to find all records that are the same in lnktxt that also have the same value in cattxt. I then want to delete the record whose datetxt record is older (ie... delete 2012-11-12 rather than 2013-01-25)
I can find the records but I am not sure how I would write the delete statement to be able to distinguish the date criteria, if it can even be done.