error #1046 in sql 'show columns from custom_order_forms': 'No database selected' in function active_record->fields() on line 107 in file '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/models/active_record.php'
/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/db/db.php:102:
array (size=7)
  0 => 
    array (size=7)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/models/active_record.php' (length=86)
      'line' => int 107
      'function' => string 'exec' (length=4)
      'class' => string 'new_db' (length=6)
      'object' => 
        object(user_db)[5]
          private 'user_id' => string '1255' (length=4)
          protected 'user' => string 'cydec' (length=5)
          protected 'password' => string '2ebMcsFZrd689mwb' (length=16)
          protected 'host' => string 'localhost' (length=9)
          protected 'database' => string 'cydec_cydec_1255' (length=16)
          private 'link' (new_db) => resource(2, mysql link)
          private 'initialized' (new_db) => boolean true
      'type' => string '->' (length=2)
      'args' => 
        array (size=2)
          0 => string 'show columns from custom_order_forms' (length=36)
          1 => boolean true
  1 => 
    array (size=7)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/models/active_record.php' (length=86)
      'line' => int 29
      'function' => string 'fields' (length=6)
      'class' => string 'active_record' (length=13)
      'object' => 
        object(custom_order_form_user_model)[6]
          protected 'types' => 
            array (size=3)
              ...
          protected 'flipped_types' => 
            array (size=3)
              ...
          protected 'cached_products' => null
          protected 'table' => string 'custom_order_forms' (length=18)
          protected 'default_sort' => 
            array (size=1)
              ...
          protected 'db' => 
            object(user_db)[5]
              ...
          protected 'is_new' => null
          protected 'is_factory' => null
          protected 'factory_info' => null
          protected 'object_cache' => null
          protected 'extra_query_columns' => null
          protected 'context' => null
      'type' => string '->' (length=2)
      'args' => 
        array (size=0)
          empty
  2 => 
    array (size=7)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/models/active_record.php' (length=86)
      'line' => int 91
      'function' => string '__construct' (length=11)
      'class' => string 'active_record' (length=13)
      'object' => 
        object(custom_order_form_user_model)[6]
          protected 'types' => 
            array (size=3)
              ...
          protected 'flipped_types' => 
            array (size=3)
              ...
          protected 'cached_products' => null
          protected 'table' => string 'custom_order_forms' (length=18)
          protected 'default_sort' => 
            array (size=1)
              ...
          protected 'db' => 
            object(user_db)[5]
              ...
          protected 'is_new' => null
          protected 'is_factory' => null
          protected 'factory_info' => null
          protected 'object_cache' => null
          protected 'extra_query_columns' => null
          protected 'context' => null
      'type' => string '->' (length=2)
      'args' => 
        array (size=5)
          0 => null
          1 => boolean true
          2 => boolean true
          3 => null
          4 => 
            object(user_db)[5]
              ...
  3 => 
    array (size=6)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/models/user/custom_order_form.php' (length=95)
      'line' => int 24
      'function' => string 'factory_backend' (length=15)
      'class' => string 'active_record' (length=13)
      'type' => string '::' (length=2)
      'args' => 
        array (size=3)
          0 => string 'custom_order_form_user_model' (length=28)
          1 => 
            object(user_db)[5]
              ...
          2 => string '1255' (length=4)
  4 => 
    array (size=6)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/views/customer_forms/order_form.php' (length=97)
      'line' => int 101
      'function' => string 'factory' (length=7)
      'class' => string 'custom_order_form_user_model' (length=28)
      'type' => string '::' (length=2)
      'args' => 
        array (size=0)
          empty
  5 => 
    array (size=7)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/library/objects/views/view.php' (length=76)
      'line' => int 25
      'function' => string 'initialize' (length=10)
      'class' => string 'order_form' (length=10)
      'object' => 
        object(order_form)[4]
          public 'cart' => null
          protected 'session' => 
            object(customer_session)[2]
              ...
          protected 'form_id' => string '21' (length=2)
          protected 'form' => null
          protected 'products' => null
          protected 'pieces' => null
          protected 'is_quickbuy' => boolean false
          protected 'quickbuy_product_id' => null
          protected 'payment_failure_message' => null
          protected 'required_products' => null
          protected 'hidden_pieces' => null
          protected 'labels' => null
          protected 'required_fields' => null
          protected 'error_message' => null
          protected 'total_data' => null
          protected 'js_fields' => null
          protected 'previous_saleid' => null
          protected 'initial_message' => 
            array (size=3)
              ...
          private 'initialized' (view) => null
          private 'is_postback' (view) => boolean false
          private 'script' (view) => string '/cydec/cart/cof.php' (length=19)
          protected 'defaults' => 
            array (size=2)
              ...
          protected 'page_engine' => null
      'type' => string '->' (length=2)
      'args' => 
        array (size=0)
          empty
  6 => 
    array (size=7)
      'file' => string '/cluster/sites/cydec.com-cydec/app/1550079561/cart/cof.php' (length=58)
      'line' => int 336
      'function' => string '__construct' (length=11)
      'class' => string 'view' (length=4)
      'object' => 
        object(order_form)[4]
          public 'cart' => null
          protected 'session' => 
            object(customer_session)[2]
              ...
          protected 'form_id' => string '21' (length=2)
          protected 'form' => null
          protected 'products' => null
          protected 'pieces' => null
          protected 'is_quickbuy' => boolean false
          protected 'quickbuy_product_id' => null
          protected 'payment_failure_message' => null
          protected 'required_products' => null
          protected 'hidden_pieces' => null
          protected 'labels' => null
          protected 'required_fields' => null
          protected 'error_message' => null
          protected 'total_data' => null
          protected 'js_fields' => null
          protected 'previous_saleid' => null
          protected 'initial_message' => 
            array (size=3)
              ...
          private 'initialized' (view) => null
          private 'is_postback' (view) => boolean false
          private 'script' (view) => string '/cydec/cart/cof.php' (length=19)
          protected 'defaults' => 
            array (size=2)
              ...
          protected 'page_engine' => null
      'type' => string '->' (length=2)
      'args' => 
        array (size=0)
          empty