UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'UX4TBBXBDTf3kUNJmXJt1xwHRBGTkyIHgCdNe0FpV+Q='
WHERE
key_id = 'b6444f87ea9b4e5dba8a5990c22b5e113fba23c6b176ea270f36d71f097f9cad'
AND (
token = 'UX4TBBXBDTf3kUNJmXJt1xwHRBGTkyIHgCdNe0FpV+Q='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)