object(Foolz\SphinxQL\Exception\DatabaseException)#20 (7) {
  ["message":protected]=>
  string(1358) "[1064] index ricerca: syntax error, unexpected $end near '' [ SELECT id_scheda, id_tipologia_stato_scheda, titolo, url_alias, descrizione, indirizzo, cap, comune, regione, cat_fixed, provincia, categorie, telefono as telefono_fisso, links, sigla_provincia, riferimenti, nr_voti as numero_commenti, moduli, wifi as wifi_attivo, latitudine, longitudine, somma_voti/nr_voti as rating_commenti, immagine, WEIGHT()*IF(id_tipologia_stato_scheda = 1 OR id_tipologia_stato_scheda = 3, 5, 1)*IF(titolo='agenziadelterritoriosezionestaccatadimondovi',10,1) AS rank FROM ricerca WHERE MATCH('(@(regione,comune,sigla_provincia) =\"sirmione\") (@(titolo,categorie,keywords,descrizione) =\"agenziadelterritoriosezionestaccatadimondovi\" | \"^agenziadelterritoriosezionestaccatadimondovi$\" | (agenziadelterritoriosezionestaccatadimondovi))') ORDER BY rank DESC LIMIT 0, 20 OPTION ranker = expr('2 * ( sum( ( 4 * lcs + 2 * ( min_hit_pos == 1 ) + exact_hit ) * user_weight ) * 1000 + bm25 ) - sum( lcs + exact_hit + exact_order + word_count / ( tf_idf * hit_count ) ) * top( user_weight * user_weight ) + sum( exact_hit + exact_order + word_count / hit_count ) * top( user_weight ) + bm25 + max_lcs + doc_word_count / query_word_count'), max_matches = 1000, field_weights = (indirizzo=60, comune=5, provincia=1, regione=3, titolo=50, categorie=30, keywords=3, descrizione=1)]"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  int(0)
  ["file":protected]=>
  string(90) "/var/www/virtualhosts/overplace.com/libraries/Foolz/SphinxQL/Drivers/Mysqli/Connection.php"
  ["line":protected]=>
  int(133)
  ["trace":"Exception":private]=>
  array(8) {
    [0]=>
    array(6) {
      ["file"]=>
      string(73) "/var/www/virtualhosts/overplace.com/libraries/Foolz/SphinxQL/SphinxQL.php"
      ["line"]=>
      int(261)
      ["function"]=>
      string(5) "query"
      ["class"]=>
      string(40) "Foolz\SphinxQL\Drivers\Mysqli\Connection"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(1295) "SELECT id_scheda, id_tipologia_stato_scheda, titolo, url_alias, descrizione, indirizzo, cap, comune, regione, cat_fixed, provincia, categorie, telefono as telefono_fisso, links, sigla_provincia, riferimenti, nr_voti as numero_commenti, moduli, wifi as wifi_attivo, latitudine, longitudine, somma_voti/nr_voti as rating_commenti, immagine, WEIGHT()*IF(id_tipologia_stato_scheda = 1 OR id_tipologia_stato_scheda = 3, 5, 1)*IF(titolo='agenziadelterritoriosezionestaccatadimondovi',10,1) AS rank FROM ricerca WHERE MATCH('(@(regione,comune,sigla_provincia) =\"sirmione\") (@(titolo,categorie,keywords,descrizione) =\"agenziadelterritoriosezionestaccatadimondovi\" | \"^agenziadelterritoriosezionestaccatadimondovi$\" | (agenziadelterritoriosezionestaccatadimondovi))') ORDER BY rank DESC LIMIT 0, 20 OPTION ranker = expr('2 * ( sum( ( 4 * lcs + 2 * ( min_hit_pos == 1 ) + exact_hit ) * user_weight ) * 1000 + bm25 ) - sum( lcs + exact_hit + exact_order + word_count / ( tf_idf * hit_count ) ) * top( user_weight * user_weight ) + sum( exact_hit + exact_order + word_count / hit_count ) * top( user_weight ) + bm25 + max_lcs + doc_word_count / query_word_count'), max_matches = 1000, field_weights = (indirizzo=60, comune=5, provincia=1, regione=3, titolo=50, categorie=30, keywords=3, descrizione=1)"
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(69) "/var/www/virtualhosts/overplace.com/libraries/SphinxManager.class.php"
      ["line"]=>
      int(386)
      ["function"]=>
      string(7) "execute"
      ["class"]=>
      string(23) "Foolz\SphinxQL\SphinxQL"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(70) "/var/www/virtualhosts/overplace.com/libraries/ricerca_schede.class.php"
      ["line"]=>
      int(1096)
      ["function"]=>
      string(5) "query"
      ["class"]=>
      string(13) "SphinxManager"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &object(Foolz\SphinxQL\SphinxQL)#11 (24) {
          ["connection":protected]=>
          object(Foolz\SphinxQL\Drivers\Mysqli\Connection)#16 (4) {
            ["internal_encoding":protected]=>
            string(5) "UTF-8"
            ["silence_connection_warning":protected]=>
            bool(false)
            ["connection_params":protected]=>
            array(3) {
              ["host"]=>
              string(9) "127.0.0.1"
              ["port"]=>
              string(4) "9306"
              ["socket"]=>
              NULL
            }
            ["connection":protected]=>
            object(mysqli)#21 (19) {
              ["affected_rows"]=>
              int(-1)
              ["client_info"]=>
              string(79) "mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $"
              ["client_version"]=>
              int(50011)
              ["connect_errno"]=>
              int(0)
              ["connect_error"]=>
              NULL
              ["errno"]=>
              int(1064)
              ["error"]=>
              string(52) "index ricerca: syntax error, unexpected $end near ''"
              ["error_list"]=>
              array(1) {
                [0]=>
                array(3) {
                  ["errno"]=>
                  int(1064)
                  ["sqlstate"]=>
                  string(5) "42000"
                  ["error"]=>
                  string(52) "index ricerca: syntax error, unexpected $end near ''"
                }
              }
              ["field_count"]=>
              int(0)
              ["host_info"]=>
              string(20) "127.0.0.1 via TCP/IP"
              ["info"]=>
              NULL
              ["insert_id"]=>
              int(0)
              ["server_info"]=>
              string(22) "3.1.1 (commit 612d99f)"
              ["server_version"]=>
              int(30101)
              ["stat"]=>
              string(34) "ÿ#08S01unknown command (code=9)"
              ["sqlstate"]=>
              string(5) "00000"
              ["protocol_version"]=>
              int(10)
              ["thread_id"]=>
              int(1)
              ["warning_count"]=>
              int(0)
            }
          }
          ["last_result":protected]=>
          NULL
          ["last_compiled":protected]=>
          string(1295) "SELECT id_scheda, id_tipologia_stato_scheda, titolo, url_alias, descrizione, indirizzo, cap, comune, regione, cat_fixed, provincia, categorie, telefono as telefono_fisso, links, sigla_provincia, riferimenti, nr_voti as numero_commenti, moduli, wifi as wifi_attivo, latitudine, longitudine, somma_voti/nr_voti as rating_commenti, immagine, WEIGHT()*IF(id_tipologia_stato_scheda = 1 OR id_tipologia_stato_scheda = 3, 5, 1)*IF(titolo='agenziadelterritoriosezionestaccatadimondovi',10,1) AS rank FROM ricerca WHERE MATCH('(@(regione,comune,sigla_provincia) =\"sirmione\") (@(titolo,categorie,keywords,descrizione) =\"agenziadelterritoriosezionestaccatadimondovi\" | \"^agenziadelterritoriosezionestaccatadimondovi$\" | (agenziadelterritoriosezionestaccatadimondovi))') ORDER BY rank DESC LIMIT 0, 20 OPTION ranker = expr('2 * ( sum( ( 4 * lcs + 2 * ( min_hit_pos == 1 ) + exact_hit ) * user_weight ) * 1000 + bm25 ) - sum( lcs + exact_hit + exact_order + word_count / ( tf_idf * hit_count ) ) * top( user_weight * user_weight ) + sum( exact_hit + exact_order + word_count / hit_count ) * top( user_weight ) + bm25 + max_lcs + doc_word_count / query_word_count'), max_matches = 1000, field_weights = (indirizzo=60, comune=5, provincia=1, regione=3, titolo=50, categorie=30, keywords=3, descrizione=1)"
          ["type":protected]=>
          string(6) "select"
          ["query":protected]=>
          NULL
          ["select":protected]=>
          array(24) {
            [0]=>
            string(9) "id_scheda"
            [1]=>
            string(25) "id_tipologia_stato_scheda"
            [2]=>
            string(6) "titolo"
            [3]=>
            string(9) "url_alias"
            [4]=>
            string(11) "descrizione"
            [5]=>
            string(9) "indirizzo"
            [6]=>
            string(3) "cap"
            [7]=>
            string(6) "comune"
            [8]=>
            string(7) "regione"
            [9]=>
            string(9) "cat_fixed"
            [10]=>
            string(9) "provincia"
            [11]=>
            string(9) "categorie"
            [12]=>
            string(26) "telefono as telefono_fisso"
            [13]=>
            string(5) "links"
            [14]=>
            string(15) "sigla_provincia"
            [15]=>
            string(11) "riferimenti"
            [16]=>
            string(26) "nr_voti as numero_commenti"
            [17]=>
            string(6) "moduli"
            [18]=>
            string(19) "wifi as wifi_attivo"
            [19]=>
            string(10) "latitudine"
            [20]=>
            string(11) "longitudine"
            [21]=>
            string(37) "somma_voti/nr_voti as rating_commenti"
            [22]=>
            string(8) "immagine"
            [23]=>
            string(152) "WEIGHT()*IF(id_tipologia_stato_scheda = 1 OR id_tipologia_stato_scheda = 3, 5, 1)*IF(titolo='agenziadelterritoriosezionestaccatadimondovi',10,1) AS rank"
          }
          ["from":protected]=>
          array(1) {
            [0]=>
            string(7) "ricerca"
          }
          ["where":protected]=>
          array(0) {
          }
          ["match":protected]=>
          array(2) {
            [0]=>
            array(3) {
              ["column"]=>
              array(3) {
                [0]=>
                string(7) "regione"
                [1]=>
                string(6) "comune"
                [2]=>
                string(15) "sigla_provincia"
              }
              ["value"]=>
              object(Foolz\SphinxQL\Expression)#4 (1) {
                ["string":protected]=>
                string(11) "="sirmione""
              }
              ["half"]=>
              bool(false)
            }
            [1]=>
            array(3) {
              ["column"]=>
              array(4) {
                [0]=>
                string(6) "titolo"
                [1]=>
                string(9) "categorie"
                [2]=>
                string(8) "keywords"
                [3]=>
                string(11) "descrizione"
              }
              ["value"]=>
              object(Foolz\SphinxQL\Expression)#10 (1) {
                ["string":protected]=>
                string(147) "="agenziadelterritoriosezionestaccatadimondovi" | "^agenziadelterritoriosezionestaccatadimondovi$" | (agenziadelterritoriosezionestaccatadimondovi)"
              }
              ["half"]=>
              bool(false)
            }
          }
          ["group_by":protected]=>
          array(0) {
          }
          ["within_group_order_by":protected]=>
          array(0) {
          }
          ["having":protected]=>
          array(0) {
          }
          ["order_by":protected]=>
          array(1) {
            [0]=>
            array(2) {
              ["column"]=>
              string(4) "rank"
              ["direction"]=>
              string(4) "DESC"
            }
          }
          ["offset":protected]=>
          int(0)
          ["limit":protected]=>
          int(20)
          ["into":protected]=>
          NULL
          ["columns":protected]=>
          array(0) {
          }
          ["values":protected]=>
          array(0) {
          }
          ["set":protected]=>
          array(0) {
          }
          ["options":protected]=>
          array(3) {
            [0]=>
            array(2) {
              ["name"]=>
              string(6) "ranker"
              ["value"]=>
              object(Foolz\SphinxQL\Expression)#7 (1) {
                ["string":protected]=>
                string(345) "expr('2 * ( sum( ( 4 * lcs + 2 * ( min_hit_pos == 1 ) + exact_hit ) * user_weight ) * 1000 + bm25 ) - sum( lcs + exact_hit + exact_order + word_count / ( tf_idf * hit_count ) ) * top( user_weight * user_weight ) + sum( exact_hit + exact_order + word_count / hit_count ) * top( user_weight ) + bm25 + max_lcs + doc_word_count / query_word_count')"
              }
            }
            [1]=>
            array(2) {
              ["name"]=>
              string(11) "max_matches"
              ["value"]=>
              int(1000)
            }
            [2]=>
            array(2) {
              ["name"]=>
              string(13) "field_weights"
              ["value"]=>
              array(8) {
                ["indirizzo"]=>
                int(60)
                ["comune"]=>
                int(5)
                ["provincia"]=>
                int(1)
                ["regione"]=>
                int(3)
                ["titolo"]=>
                int(50)
                ["categorie"]=>
                int(30)
                ["keywords"]=>
                int(3)
                ["descrizione"]=>
                int(1)
              }
            }
          }
          ["facets":protected]=>
          array(0) {
          }
          ["queue_prev":protected]=>
          NULL
          ["escape_full_chars":protected]=>
          array(15) {
            ["\"]=>
            string(2) "\\"
            ["("]=>
            string(2) "\("
            [")"]=>
            string(2) "\)"
            ["|"]=>
            string(2) "\|"
            ["-"]=>
            string(2) "\-"
            ["!"]=>
            string(2) "\!"
            ["@"]=>
            string(2) "\@"
            ["~"]=>
            string(2) "\~"
            ["""]=>
            string(2) "\""
            ["&"]=>
            string(2) "\&"
            ["/"]=>
            string(2) "\/"
            ["^"]=>
            string(2) "\^"
            ["$"]=>
            string(2) "\$"
            ["="]=>
            string(2) "\="
            ["<"]=>
            string(2) "\<"
          }
          ["escape_half_chars":protected]=>
          array(12) {
            ["\"]=>
            string(2) "\\"
            ["("]=>
            string(2) "\("
            [")"]=>
            string(2) "\)"
            ["!"]=>
            string(2) "\!"
            ["@"]=>
            string(2) "\@"
            ["~"]=>
            string(2) "\~"
            ["&"]=>
            string(2) "\&"
            ["/"]=>
            string(2) "\/"
            ["^"]=>
            string(2) "\^"
            ["$"]=>
            string(2) "\$"
            ["="]=>
            string(2) "\="
            ["<"]=>
            string(2) "\<"
          }
        }
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(66) "/var/www/virtualhosts/overplace.com/libraries/ricerca.abstract.php"
      ["line"]=>
      int(401)
      ["function"]=>
      string(13) "execute_query"
      ["class"]=>
      string(14) "ricerca_schede"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [4]=>
    array(6) {
      ["file"]=>
      string(66) "/var/www/virtualhosts/overplace.com/libraries/ricerca.abstract.php"
      ["line"]=>
      int(298)
      ["function"]=>
      string(4) "init"
      ["class"]=>
      string(7) "ricerca"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [5]=>
    array(6) {
      ["file"]=>
      string(70) "/var/www/virtualhosts/overplace.com/libraries/ricerca_schede.class.php"
      ["line"]=>
      int(816)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(7) "ricerca"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &array(0) {
        }
      }
    }
    [6]=>
    array(6) {
      ["file"]=>
      string(70) "/var/www/virtualhosts/overplace.com/libraries/ricerca_schede.class.php"
      ["line"]=>
      int(149)
      ["function"]=>
      string(17) "ricerca_bootstrap"
      ["class"]=>
      string(14) "ricerca_schede"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &array(0) {
        }
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(56) "/var/www/virtualhosts/overplace.com/site_new/ricerca.php"
      ["line"]=>
      int(11)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(14) "ricerca_schede"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
}