UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+UXcyCF7zjdwgnAQMnLTRP+4YLeqfL8+pQmlom2Zr/k='
WHERE
key_id = '83b848373d130e3d309472798dca5002e56ec26b47409a9a28a6799c1e69ec53'
AND (
token = '+UXcyCF7zjdwgnAQMnLTRP+4YLeqfL8+pQmlom2Zr/k='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)