UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Iggiw7wnM2OgclBcLWtd29SoZ4+SUg0XbFCO1q1SteA='
WHERE
key_id = '70fbff97935b901c2e05c9dedad416597f2bb71d9ae55dde8cf49b877c1c2644'
AND (
token = 'Iggiw7wnM2OgclBcLWtd29SoZ4+SUg0XbFCO1q1SteA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)