UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'IijfMdM6p9RM86J1U/3nUK7fQqNRVacFSh56SDT/ypY='
WHERE
key_id = '73de88d16e18d890c140cd95d8dd8e68ce6d1462da8c44ecf539e66f6353aa4e'
AND (
token = 'IijfMdM6p9RM86J1U/3nUK7fQqNRVacFSh56SDT/ypY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)