UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'DX/GD/uipgACQZ6gyfhBmH/da/+5YWNjdgtJnzSjJ+M='
WHERE
key_id = '0dfce894fbed17d88039260acd0ed70bbeac77306374233d2f46576fce7cbe72'
AND (
token = 'DX/GD/uipgACQZ6gyfhBmH/da/+5YWNjdgtJnzSjJ+M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)