SELECT version, compatible
FROM YourTable
WHERE version >= '0.1.3'
AND version < (SELECT version
FROM YourTable
WHERE version > '0.1.3'
AND compatible = 'false'
ORDER BY version
LIMIT 1)
ORDER BY version