DB/Waypoints: Fix error in previous sql.