Fixed two SQL queries that broke since NULL -> nullptr replacement