UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GSnlnzt/1TbsM7V6Se0pGd75IS1AksHU7Lctmu4IhoQ='
WHERE
key_id = '9ba243475672fca101521f5cb0cc492785dc4269485982ac9f0cabbe87735703'
AND (
token = 'GSnlnzt/1TbsM7V6Se0pGd75IS1AksHU7Lctmu4IhoQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)