PreparedQuery fixed