UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2h2mbM3S5cpg1Q4e4U6m03aKersXDDR6h/63/+Mq59Q='
WHERE
key_id = '1d3fa830f7360e1621f1f7bf974930af5e0b7af09c780bd2cb4f67379f01c65c'
AND (
token = '2h2mbM3S5cpg1Q4e4U6m03aKersXDDR6h/63/+Mq59Q='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)