UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '1LlpDTO4w5VdTL6Vl48GpLjVYGv6saLAQpFRcnuq/ao='
WHERE
key_id = '6b660af2be93ab6693af356425c73a9ad91d9041c29b403b780fca9d6f06eb74'
AND (
token = '1LlpDTO4w5VdTL6Vl48GpLjVYGv6saLAQpFRcnuq/ao='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)