The result object is returned only if the query given in sql_statement produces a result set.
dbx_query() returns an object or 1 on success, and 0 on failure. The result object is returned only if the query given in sql_statement produces a result set.