Fixed SQL - options/choices/missing data now works