UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'MOBx41JAfuKvBcGWg6REPuitkHlgssFBfF1yJNtxfMQ='
WHERE
key_id = '5a5d70faedf51cf3369a112bb50434e53ab051715082a420007c1dd0a1783775'
AND (
token = 'MOBx41JAfuKvBcGWg6REPuitkHlgssFBfF1yJNtxfMQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)