Jump to content

Retrieve Last Duplicate Record


refiking

Recommended Posts

'most recent' implies using some kind of timestamp. You cannot rely on auto_increment to indicate the order in which record were inserted.

 

If you want to take a risk though:

SELECT * FROM `phplist_user_user` WHERE `email` = '$email' ORDER BY id DESC LIMIT 1

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.