UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/kJE8NIXmhVs1mCv9haWcJqpBElAXeGUMUzqhQ+CfPY='
WHERE
key_id = '483a68547845426b1b3b39a947f307e971a3f4e051d9c6215de852e5da49dc96'
AND (
token = '/kJE8NIXmhVs1mCv9haWcJqpBElAXeGUMUzqhQ+CfPY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)