UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'h4Ml03K2/r7PGv2rooI+ZYxGzVm7xRoihrK0wOnzx1U='
WHERE
key_id = 'fc367f06bc7eb60d5612c34cbcfd11674af65bdd789712fb1dbb36a3f8ea1017'
AND (
token = 'h4Ml03K2/r7PGv2rooI+ZYxGzVm7xRoihrK0wOnzx1U='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)