ERROR in query. To avoid this stop: use function query_ok