UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OnCyJlIOm+SbLMS0/prliXR9oFzimRBrwUh4QyXhWYE='
WHERE
key_id = 'ea56a511ecae0ab54fab925bc0300e7129eb9060f99b4ed2d2d392512e009eaa'
AND (
token = 'OnCyJlIOm+SbLMS0/prliXR9oFzimRBrwUh4QyXhWYE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)