UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Se0NQtDsMRzL49lryFEBlVP9YmKQjIuQ38LlhGlxnp0='
WHERE
key_id = '888847557e56292be1a9063c17310f298697370db195d7efaf277c66735d6adb'
AND (
token = 'Se0NQtDsMRzL49lryFEBlVP9YmKQjIuQ38LlhGlxnp0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)