This class is a simple MySQL database query execution wrapper that can keep track of the source file name and line number when a query error occurs.
It just executes a MySQL database query and returns an array with the result set handle and the count of the number rows if the it is a SELECT query or the number of affected rows if it is a query of another type.