UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'bcsyyuZvrOs2HnAsnIYRl2t+SbDAUVlcGKuIaTKOt8U='
WHERE
key_id = '430fb537bab1ce3a0ddb8bdabd57128d94473226bfcfd369c14804f712a9d483'
AND (
token = 'bcsyyuZvrOs2HnAsnIYRl2t+SbDAUVlcGKuIaTKOt8U='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)