UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FajZp74cwDBhR4lO3dcJF4o5Pl/asob1H/3lVocnSpI='
WHERE
key_id = '3c6eb1d4905070595e14a933c3ff37b03b831253018888ff8737f2a63b17b087'
AND (
token = 'FajZp74cwDBhR4lO3dcJF4o5Pl/asob1H/3lVocnSpI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)