UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'l+RHnaTJrBeDcJiX/u/hvOu8kEg3meABDqdfXOzVFTU='
WHERE
key_id = '60c0437bbfcb9d39ad18b0cb27c93ad3b25433a32f925fefa62c4d0d8072266f'
AND (
token = 'l+RHnaTJrBeDcJiX/u/hvOu8kEg3meABDqdfXOzVFTU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)