UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'zOxZEHSBXlK5DUkHxFyF+lzRu2N8S59CGmkK5pTDmlY='
WHERE
key_id = '678796b0e5c845da60a187b86e1a5c88bb55cd63fc5b985fa15aa7c48dfa557f'
AND (
token = 'zOxZEHSBXlK5DUkHxFyF+lzRu2N8S59CGmkK5pTDmlY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)