UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'KcGP+CRSzeGl/ejBK3hmwTM1qVu6goxt+7ZOD2YyQ+8='
WHERE
key_id = 'b5720c7ee3519bcd79adce959154c54f7ce9b1a9274eb6feeeeaf342adef2c68'
AND (
token = 'KcGP+CRSzeGl/ejBK3hmwTM1qVu6goxt+7ZOD2YyQ+8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)