UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '7/XZho1BK0yYLDpNobwspaKuFQhX6s33NS3DM/1jFVQ='
WHERE
key_id = '4b76ab5ed80af795cc83c814c6f8196d9dca2e3a763b601fd88850b1c4536c26'
AND (
token = '7/XZho1BK0yYLDpNobwspaKuFQhX6s33NS3DM/1jFVQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)