Fixed prepared statement queries.