UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4JEn4/YfUah4rnYQdexu/dc9kwkLH5mVWezbILH2kbQ='
WHERE
key_id = '222221629e5c15c219ded0de3c8bc0631e6fa21db075101b3751a0b2c25bc975'
AND (
token = '4JEn4/YfUah4rnYQdexu/dc9kwkLH5mVWezbILH2kbQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)