Fixed more prepared statement queries.